Skip to content

Commit

Permalink
Fixed calibration_curve's normalize deprecated in sklearn
Browse files Browse the repository at this point in the history
  • Loading branch information
oo committed May 6, 2024
1 parent 78bc024 commit 7b866cd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def __init__(self, y_true, y_proba, labels=None, sample_weight=None,
sklearn.calibration.calibration_curve(
y_true=y_true == class_index,
y_prob=y_proba[:, class_index],
normalize=False,
n_bins=n_bins,
strategy='uniform')
self._calibration_curve[label] = dict(
Expand Down
2 changes: 1 addition & 1 deletion pytolemaic/prediction_uncertainty/uncertainty_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def fit_uncertainty_model(self, dmd_test, n_jobs=multiprocessing.cpu_count() - 1
self._fraction_of_positives, self._mean_uncertainty = sklearn.calibration.calibration_curve(
y_true=y_pred == y_true,
y_prob=uncertainty,
normalize=True,
# normalize=True - deprecated. not sure on implications
n_bins=self._n_bins,
strategy='uniform')

Expand Down
2 changes: 1 addition & 1 deletion pytolemaic/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '0.15.4'
version = '0.16.0'

0 comments on commit 7b866cd

Please sign in to comment.