glum/deprecated-alphas-param
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| glum | warning | safe, with xpd check --fix |
All versions |
GeneralizedLinearRegressor deprecates the alphas parameter in favor of alpha (which accepts an iterable when alpha_search=True) and emits a DeprecationWarning during fit.
glm = GeneralizedLinearRegressor(alphas=[0.1, 1.0], alpha_search=True)glm = GeneralizedLinearRegressor(alpha=[0.1, 1.0], alpha_search=True)What the rule reports
Section titled “What the rule reports”Calls to GeneralizedLinearRegressor passing alphas= (note that GeneralizedLinearRegressorCV continues to use alphas= and is not flagged).
How to fix it
Section titled “How to fix it”Rename alphas= to alpha=. Safe autofixes apply directly with xpd check --fix.
Diagnostic message
Section titled “Diagnostic message”alphas= is deprecated on GeneralizedLinearRegressor and emits a DeprecationWarning. Pass alpha= instead.See all rules in the glum pack.