Skip to content

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")

Calls to GeneralizedLinearRegressor or GeneralizedLinearRegressorCV with solver="newton-cg".

Use solver="auto", "irls-ls", "irls-cd", "lbfgs", "closed-form", "trust-constr", or "irls-ls-monotonic".

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.