glum/removed-newton-cg-solver
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| glum | error | none, edit by hand | All versions |
glum removed the newton-cg solver because scikit-learn deprecated sklearn.utils.optimize.newton_cg, and raises ValueError during fit.
glm = GeneralizedLinearRegressor(family="poisson", solver="newton-cg")glm = GeneralizedLinearRegressor(family="poisson", solver="auto")What the rule reports
Section titled “What the rule reports”Calls to GeneralizedLinearRegressor or GeneralizedLinearRegressorCV with solver="newton-cg".
How to fix it
Section titled “How to fix it”Use solver="auto", "irls-ls", "irls-cd", "lbfgs", "closed-form", "trust-constr", or "irls-ls-monotonic".
Diagnostic message
Section titled “Diagnostic message”solver='newton-cg' is no longer supported in glum and raises ValueError during fit. Use solver='auto', 'irls-ls', 'irls-cd', or 'lbfgs'.See all rules in the glum pack.