The glum pack checks generalized linear model configuration, monotonic constraints, solvers, and Tweedie parameters against glum 3.5 on files that import glum.
| Rules |
Safe fix |
Unsafe fix |
Manual fix |
| 6 |
1 |
0 |
5 |
| Rule |
Severity |
Fix |
What it finds |
| deprecated-alphas-param |
warning |
safe |
GeneralizedLinearRegressor deprecates the alphas parameter in favor of alpha (which accepts an iterable when alpha_search=True) and emits a DeprecationWarning during fit. |
| removed-newton-cg-solver |
error |
none |
glum removed the newton-cg solver because scikit-learn deprecated sklearn.utils.optimize.newton_cg, and raises ValueError during fit. |
| scale-predictors-without-intercept |
error |
none |
GeneralizedLinearRegressor and GeneralizedLinearRegressorCV raise ValueError("scale_predictors=True is not supported when fit_intercept=False.") during fit because internal standardization centers predictors around the intercept. |
| tweedie-invalid-power |
error |
none |
No exponential dispersion model exists in the Tweedie family for 0 < power < 1, so TweedieDistribution and TweedieLink raise ValueError immediately. |
| Rule |
Severity |
Fix |
What it finds |
| monotonic-constraints-without-formula |
error |
none |
glum resolves named monotonic_constraints through Formulaic design matrices and raises ValueError("monotonic_constraints requires a formula. |
| monotonic-constraints-conflict |
error |
none |
glum rejects combining monotonic_constraints with explicit A_ineq/b_ineq matrices or with L1 regularization (l1_ratio > 0), raising ValueError during fit. |