The Wayback Machine - https://web.archive.org/web/20220524204252/https://github.com/scikit-learn/scikit-learn/pull/23095
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEP calibration_curve normalize parameter in calibration.py #23095

Merged

Conversation

jsilke
Copy link
Contributor

@jsilke jsilke commented Apr 9, 2022

Reference Issues/PRs

Close #22482

What does this implement/fix? Explain your changes.

Deprecates the normalize parameter of calibration_curve in calibration.py in accordance with the guidelines.

@jsilke jsilke marked this pull request as ready for review Apr 9, 2022
@jsilke jsilke marked this pull request as draft Apr 9, 2022
@jsilke jsilke marked this pull request as ready for review Apr 10, 2022
@lorentzenchr lorentzenchr added this to the 1.1 milestone Apr 11, 2022
@glemaitre glemaitre self-requested a review Apr 20, 2022
Copy link
Contributor

@glemaitre glemaitre left a comment

We should add a new unit test that checks that we raise the proper FutureWarning if normalize != "deprecated".

In addition to checking the message, we can still make sure that normalize=True and normalize=False still lead to the expected results. We will remove this test in 1.3.

sklearn/calibration.py Outdated Show resolved Hide resolved
doc/whats_new/v1.1.rst Outdated Show resolved Hide resolved
doc/whats_new/v1.1.rst Outdated Show resolved Hide resolved
sklearn/tests/test_calibration.py Outdated Show resolved Hide resolved
sklearn/tests/test_calibration.py Show resolved Hide resolved
sklearn/tests/test_calibration.py Show resolved Hide resolved
sklearn/tests/test_calibration.py Outdated Show resolved Hide resolved
Copy link
Contributor

@glemaitre glemaitre left a comment

Thanks LGTM

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Thank you for the PR!

sklearn/tests/test_calibration.py Show resolved Hide resolved
sklearn/calibration.py Outdated Show resolved Hide resolved
Co-authored-by: Thomas J. Fan <[email protected]>
Copy link
Member

@thomasjpfan thomasjpfan left a comment

One more doc comment, otherwise LGTM

doc/whats_new/v1.1.rst Outdated Show resolved Hide resolved
Co-authored-by: Thomas J. Fan <[email protected]>
@thomasjpfan thomasjpfan merged commit 08c650c into scikit-learn:main Apr 25, 2022
28 checks passed
@jsilke jsilke deleted the deprecate_calibration_curve_normalize branch Apr 25, 2022
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this issue Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants