Skip to content

[MRG] ENH: Add scaling to convergence warning for LBFGS #15571

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

Conversation

thomasjpfan
Copy link
Member

Reference Issues/PRs

Partially addresses #15556

What does this implement/fix? Explain your changes.

Adds "scale the data" to the ConvergenceWarning for lbfgs.

Any other comments?

My whiteboard tells me it is possible to make the optimization more stable with some proper care for sparse matrices, regularization, and zero variance features. (I still need to work out the multinomial case to be sure)

@thomasjpfan
Copy link
Member Author

CC @amueller Maybe there is something more you would want to add to the warning message?

@amueller
Copy link
Member

amueller commented Nov 10, 2019

I'd kinda prefer #15583.
Honestly I'm a bit embarrassed that we haven't done that before :-/

@ogrisel
Copy link
Member

ogrisel commented Nov 13, 2019

I'd kinda prefer #15583.

Although the solution of this PR is nice for solvers that do not have preconditioning enabled (yet).

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.

As we are not sure of what is the best robust way to precondition l-BFGS for LogisticRegression in #15583 I would be in favor in merging this PR as a low maintenance stop-gap.

Copy link
Member

@amueller amueller left a comment

Choose a reason for hiding this comment

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

Agreed

@jnothman jnothman modified the milestones: 0.23, 0.22 Nov 17, 2019
@jnothman jnothman merged commit d84785c into scikit-learn:master Nov 17, 2019
adrinjalali pushed a commit to adrinjalali/scikit-learn that referenced this pull request Nov 18, 2019
adrinjalali pushed a commit to adrinjalali/scikit-learn that referenced this pull request Nov 18, 2019
panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants