Skip to content

fix: Deprecate n_alphas across estimators for scikit-learn 1.9 compatibility#1043

Open
TasfinMahmud wants to merge 1 commit into
py-why:mainfrom
TasfinMahmud:fix/issue-1032-n_alphas-deprecation
Open

fix: Deprecate n_alphas across estimators for scikit-learn 1.9 compatibility#1043
TasfinMahmud wants to merge 1 commit into
py-why:mainfrom
TasfinMahmud:fix/issue-1032-n_alphas-deprecation

Conversation

@TasfinMahmud

@TasfinMahmud TasfinMahmud commented Jun 16, 2026

Copy link
Copy Markdown

Fixes #1032 by introducing the new alphas parameter to affected estimators (e.g., SparseLinearDML, LinearDRLearner, DebiasedLasso), safely deprecating the old n_alphas parameter with a FutureWarning, and passing alphas directly down to scikit-learn. cc: @jakevdp

…ibility (py-why#1032)

Signed-off-by: Tasfin Mahmud <tasfinmahmud1@gmail.com>
@TasfinMahmud TasfinMahmud force-pushed the fix/issue-1032-n_alphas-deprecation branch from 47fe38e to 22f0570 Compare June 16, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scikit-learn v1.9 drops n_alphas from LassoCV and related estimators, causing econml to error on import

1 participant