Skip to content

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)

Calls to GeneralizedLinearRegressor passing alphas= (note that GeneralizedLinearRegressorCV continues to use alphas= and is not flagged).

Rename alphas= to alpha=. Safe autofixes apply directly with xpd check --fix.

alphas= is deprecated on GeneralizedLinearRegressor and emits a DeprecationWarning. Pass alpha= instead.

See all rules in the glum pack.