-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Fix Calibrated classifier cv predictions with pipeline #19641
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
Fix Calibrated classifier cv predictions with pipeline #19641
Conversation
There was a problem hiding this 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 @AlekLefebvre !
Please add an entry to the change log at doc/whats_new/v1.0.rst
with tag |Fix|. Like the other entries there, please reference this pull request with :pr:
and credit yourself (and other contributors if applicable) with :user:
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @AlekLefebvre , some minor comments but LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well.
Here is just a quick formatting commit about docstring formating. I will merge once green.
Thank you very much @AlekLefebvre ! |
Reference Issues/PRs
Fixes #19637, #8710.
What does this implement/fix? Explain your changes.
As suggested in #19641, this PR removed validation from the CalibratedClassifierCV predict_proba function and replaced X.shape[0] with _num_samples(X).
Regression testing has also been added.
Any other comments?