You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Please extend the loss-functions in SGDRegressor to allow incremental learning of Poisson / Gamma / Tweedie regressors #29600
I would like SGDRegressor to be able to accept additional values in its 'loss' arguments to be able to incrementally train additional regressors, that are currently available in SkLearn in the form of non-incremental regressors (PoissonRegressor / GammaRegressor/TweedieRegressor).
Describe your proposed solution
Add additional loss function implementations (providing gradients) to support the additional regressor types.
Describe alternatives you've considered, if relevant
Learning with L1/L2 loss in log-space. But it doesn't work well when the label of a given sample is zero. Poisson regression handles it gracefully.
That should be doable indeed now that SGDRegressor has been refactored to reuse the loss functions from the shared sklearn.linear_model._loss module as part of #28049.
Activity
ogrisel commentedon Aug 2, 2024
That should be doable indeed now that
SGDRegressorhas been refactored to reuse the loss functions from the sharedsklearn.linear_model._lossmodule as part of #28049.Any opinion @lorentzenchr?
lorentzenchr commentedon Oct 14, 2024
Very easy. Basically:
predictcsking101 commentedon Oct 25, 2024
Hi, could I take up this issue?
scikit-learn#29600 Extended the Poisson, Gamma adn Tweedie Loss funct…
Jacob-Lazar commentedon Jan 22, 2025
/take
urmikakasi commentedon Mar 13, 2026
Hello,
I'd like to work on this. Since its been over a month with no activity I will be creating a new PR.
lorentzenchr commentedon Mar 15, 2026
@urmikakasi You mean over a year. Go ahead.
Nikolasioan commentedon Apr 10, 2026
/take
urmikakasi commentedon Apr 11, 2026
Hey, I'm currently working on this one.