Repository navigation
ENH Change default strategy='quantile' in calibration_curve - #33908
StefanieSenger merged 33 commits into
Conversation
|
I am not yet sold on this one, see my comments |
StefanieSenger
left a comment
There was a problem hiding this comment.
Thank you @antoinebaker!
LGTM, except for three small fixes:
plot_calibration_curve.py and plot_compare_calibration.py are not setting the strategy explicity and would throw the FurtureWarning. We should push a commit with the [build doc] command to see if there are more examples failing.
We usually don't use the .. versionchanged tag before the version is out. I would remove it for now.
I think the changelog entry should show up as API, not an enhancement, following the towncrier specification: https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
StefanieSenger
left a comment
There was a problem hiding this comment.
This now looks good to me. Thanks for the catchup, @antoinebaker.
Before merging, let's please push a commit with [build doc] again,because the previous run did break before the docs were build.
|
This PR looks very good now. One tiny thing: Can we also use the error message inside of the Otherwise this is fine to merge. |
|
The CI should settle if you push an empty commit, @antoinebaker. |
What does this implement/fix? Explain your changes.
Change the default
strategyfrom 'uniform' to 'quantile' incalibration_curve,CalibrationDisplay.from_predictionsandCalibrationDisplay.from_estimator.Any other comments?
When estimating the calibration curve by binning, the quality of the estimate (how close it is to the true calibration curve) depends crucially on
1a. the number of bins, it seems that n_bins=n**(1/3) is best, this is tackled by #33856
1b. the binning strategy, it seems that "quantile" is better, see Roelofs et al or Nixon et al