Skip to content

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 April 9, 2022 22:36
@jsilke jsilke marked this pull request as draft April 9, 2022 23:55
@jsilke jsilke marked this pull request as ready for review April 10, 2022 16:24
@lorentzenchr lorentzenchr added this to the 1.1 milestone Apr 11, 2022
@glemaitre glemaitre self-requested a review April 20, 2022 14:10
Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks LGTM

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more doc comment, otherwise LGTM

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
@thomasjpfan thomasjpfan merged commit 08c650c into scikit-learn:main Apr 25, 2022
@jsilke jsilke deleted the deprecate_calibration_curve_normalize branch April 25, 2022 21:49
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Apr 29, 2022
…earn#23095)

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
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.

Deprecate normalize parameter in calibration_curve
4 participants