Skip to content

FIX improve error message for large sparse matrix input in LogisticRegression #21093

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

Merged
merged 2 commits into from
Sep 24, 2021

Conversation

TomDLT
Copy link
Member

@TomDLT TomDLT commented Sep 20, 2021

Fixes #21067

LogisticRegression(solver="sag") and LogisticRegression(solver="saga") do not support sparse matrices with int64 indices. This is a short-term fix to raise a better error.

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 will need an entry in what's new as well, thought.

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix.

@ogrisel ogrisel merged commit 762eca5 into scikit-learn:main Sep 24, 2021
@ogrisel ogrisel deleted the logistic branch September 24, 2021 09:05
@glemaitre glemaitre mentioned this pull request Oct 23, 2021
10 tasks
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Oct 23, 2021
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Dec 24, 2021
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.

LogisticRegression with sag and saga solvers fails for very large CSR matrices
3 participants