-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[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
[MRG] ENH: Add scaling to convergence warning for LBFGS #15571
Conversation
CC @amueller Maybe there is something more you would want to add to the warning message? |
I'd kinda prefer #15583. |
Although the solution of this PR is nice for solvers that do not have preconditioning enabled (yet). |
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.
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.
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.
Agreed
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)