Skip to content

Commit

Permalink
Bump python version due to lack of support for 3.6.0 from Pandas. Fix… (
Browse files Browse the repository at this point in the history
#286)

* Bump python version due to lack of support for 3.6.0 from Pandas. Fix pylint issue.

* Bump python version to least supported version for pylint
  • Loading branch information
robertsont authored Mar 1, 2022
1 parent 51a2991 commit 84f9bbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ngboost/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def plot_pit_histogram(predicted, observed, **kwargs):
align="edge",
fill=False,
edgecolor="black",
**kwargs
**kwargs,
)
plt.xlim((0, 1))
plt.xlabel("Probability Integral Transform")
Expand All @@ -62,7 +62,7 @@ def plot_calibration_curve(predicted, observed):
np.linspace(0, 1),
np.linspace(0, 1) * slope + intercept,
"--",
label="Slope: %.2f, Intercept: %.2f" % (slope, intercept),
label=f"Slope: {slope:.2f}, Intercept: {intercept:.2f}",
alpha=0.5,
color="black",
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ classifiers = [
license = "Apache License 2.0"

[tool.poetry.dependencies]
python = ">=3.6, <4.0"
python = ">=3.6.2, <4.0"
scikit-learn = ">=0.21"
numpy = ">=1.17"
scipy = ">=1.3"
Expand Down

0 comments on commit 84f9bbc

Please sign in to comment.