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

Fix LogisticRegression.decision_function output shape #6235

Open
wants to merge 1 commit into
base: branch-25.02
Choose a base branch
from

Conversation

jcrist
Copy link
Member

@jcrist jcrist commented Jan 17, 2025

Previously this would return (n_classes, n_rows) for multiclass, whereas sklearn returns (n_rows, n_classes).

Fixes #5741.

Previously this would return `(n_classes, n_rows)` for multiclass,
whereas sklearn returns `(n_rows, n_classes)`.
@jcrist jcrist requested a review from a team as a code owner January 17, 2025 22:43
@jcrist jcrist requested review from teju85 and divyegala January 17, 2025 22:43
@github-actions github-actions bot added the Cython / Python Cython or Python issue label Jan 17, 2025
@jcrist jcrist added bug Something isn't working non-breaking Non-breaking change and removed Cython / Python Cython or Python issue labels Jan 17, 2025
@jcrist
Copy link
Member Author

jcrist commented Jan 17, 2025

Labeled this as "non-breaking", since the old behavior was a bug and unexpected. This is a behavior change though, so in the off chance that someone's relying on it then it would be a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Invalid output from LogisticRegression decision_function.
1 participant