Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@snath-xoc
Copy link
Contributor

@snath-xoc snath-xoc commented Aug 7, 2025

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

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

✔️ Linting Passed

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

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

@snath-xoc
Copy link
Contributor Author

FYI @antoinebaker

Copy link
Contributor

@antoinebaker antoinebaker left a 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).

Copy link
Contributor

@antoinebaker antoinebaker left a 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 !

@snath-xoc
Copy link
Contributor Author

@ogrisel or @adrinjalali perhaps we can review this and merge soon?

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.

This might help prevent denial-of-service attacks.

@ogrisel ogrisel merged commit d539675 into scikit-learn:main Nov 7, 2025
38 checks passed
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 freezed when X containing large number

3 participants