Repository navigation
ENH add solver option auto to LogisticRegression and other GLMs - #35110
Conversation
97bbfd8 to
e3613b7
Compare
474e141 to
f51d144
Compare
|
@OmarManzoor @virchan @antoinebaker @ogrisel This PR would make the 1.10 release for linear models a good "package" as this PR is a small extension with real user impact: You don't need to change the default solver, it will always work not matter which penalty ( |
OmarManzoor
left a comment
There was a problem hiding this comment.
Thank you for the PR @lorentzenchr. I think adding an auto option seems nice.
f51d144 to
d35f36b
Compare
OmarManzoor
left a comment
There was a problem hiding this comment.
LGTM. Thank you @lorentzenchr
virchan
left a comment
There was a problem hiding this comment.
Fixing the bullets list in the doc-strings.
Co-authored-by: Virgil Chan <[email protected]>
virchan
left a comment
There was a problem hiding this comment.
Thank you for the PR, @lorentzenchr!
Overall, LGTM. I made a few commits to your branch to improve how the description of auto renders in the documentation (LogisticRegressionCV before vs. after).
If it's not too much trouble, could you please also update the docstrings for Poisson, Tweedie, and Gamma? I'm happy to merge once that's done.
|
This PR exceeds the recommended size of 500 lines changed. Consider splitting it into smaller PRs to ease the review process. Please make sure you read our Contributing guide and in particular our Pull Request guidelines |
|
FYI: I thought about using |
virchan
left a comment
There was a problem hiding this comment.
LGTM! Thank you everyone for your time!
Merging.
Reference Issues/PRs
Fixes #33401.
What does this implement/fix? Explain your changes.
This PR add the option
solver="auto"and the attributesolver_toLogisticRegressionLogisticRegressionCVGammaRegressorPoissonRegressorTweedieRegressorThe idea is to have a solver that just works out-of-the-box. Option "auto" explicitly states that it may change the selected solver without deprecation. This PR still selects lbfgs for L2-problems, so no change here.
AI usage disclosure
None yet.
Any other comments?
This PR adds a test for tags of LR.