-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Add newton_cg solver to TweedieRegression #16635
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
Comments
Prior to adding a new solver such as newton CG it would be good to understand when this solver is expected to out-perform the existing solver (L-BFGS). The linked preliminary benchmarks of the Tweedie regression PR could never highlight a case where newton CG would be competitive with either IRLS or L-BFGS. |
Indeed, that is the main question. Currently Thoughts about whether it would be useful to add @agramfort @lorentzenchr ? |
I've always been fine with L-BFGS or liblinear in the past. I would not
invest too much time to support newton-cg
… |
Closing as there is doesn't seem to be much motivation for this particular solver. Unless @lorentzenchr you object. Would it make sense to deprecate newton-cg in LogisticRegression then given that we want to simplify its implementation #11865? also cc @NicolasHug |
Uh oh!
There was an error while loading. Please reload this page.
The newton_cg solver for GLMs and TweedieRegression in particular was proposed in #9405 , it might be good to add it.
Preliminary benchmarks for it were done in #9405 (comment) .
If we add it, it would be good to re-use
_newton_cg
function fromsklearn/utils/optimize.py
as much as possible (also related #14248).Also see: #16634 #16637
The text was updated successfully, but these errors were encountered: