-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
FIX: Fix for binary classifier prediction shape in partial dependence function #30287
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: Fix for binary classifier prediction shape in partial dependence function #30287
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.
The fix looks good.
I'll add this PR in the milestone to make sure that we backport to not release the bug in 1.6 final.
Thanks @stephenpardy
doc/whats_new/upcoming_changes/sklearn.inspection/302871.fix.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Guillaume Lemaitre <guillaume@probabl.ai>
…m/stephenpardy/scikit-learn into 30271-partial-dependence-grid-fix
Looks like my other PR #26202 which also included the fix was merged today. |
Indeed so I guess we can close this one. It seems like #26202 included a non-regression test, for the |
Reference Issues/PRs
Fixes #30271
What does this implement/fix? Explain your changes.
Removes code that selects the positive class in the partial dependence function - the positive class is already selected by
_get_response_values
Any other comments?
Changes pulled from #26202