8000 FIX: Fix for binary classifier prediction shape in partial dependence function by stephenpardy · Pull Request #30287 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

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

Conversation

stephenpardy
Copy link
Contributor

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

Copy link
github-actions bot commented Nov 16, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: ee3e74d. Link to the linter CI: here

@stephenpardy stephenpardy changed the title [DRAFT] FIX: Fix for binary classifier prediction shape in partial dependence function FIX: Fix for binary classifier prediction shape in partial dependence function Nov 17, 2024
@glemaitre glemaitre self-requested a review November 18, 2024 09:15
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.

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

@stephenpardy
Copy link
Contributor Author

Looks like my other PR #26202 which also included the fix was merged today.

@lesteve
Copy link
Member
lesteve commented Nov 25, 2024

Indeed so I guess we can close this one. It seems like #26202 included a non-regression test, for the grid_resolution=2 bug, right?

@lesteve lesteve closed this Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

partial_dependence errors when given only two grid points
3 participants
0