-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Raise error logreg liblinear #31888
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
Raise error logreg liblinear #31888
Conversation
|
FYI @antoinebaker |
antoinebaker
left a comment
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 for the PR @snath-xoc ! Here a couple nitpicks.
Maybe we should add a changelog entry too ? (as we are raising a new error).
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 again @snath-xoc, LGTM !
doc/whats_new/upcoming_changes/sklearn.linear_model/31888.api.rst
Outdated
Show resolved
Hide resolved
|
@ogrisel or @adrinjalali perhaps we can review this and merge soon? |
ogrisel
left a comment
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.
This might help prevent denial-of-service attacks.
Reference Issues/PRs
Fixes #7486
What does this implement/fix? Explain your changes.
LogisticRegression freezes when using the liblinear solver with X containing large values>1e30. A ValueError is now raised if X contains a maximum value >1e30 with accompanying tests
Any other comments?
@antoinebaker @yl565 @agramfort @ogrisel