8000 Added check_X_y to lasso_stability_path() (#7534) · massich/scikit-learn@353ceb9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 353ceb9

Browse files
zorroblueJoan Massich
authored andcommitted
Added check_X_y to lasso_stability_path() (scikit-learn#7534)
1 parent 5894f13 commit 353ceb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sklearn/linear_model/randomized_l1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ def lasso_stability_path(X, y, scaling=0.5, random_state=None,
611611
-----
612612
See examples/linear_model/plot_sparse_recovery.py for an example.
613613
"""
614+
X, y = check_X_y(X, y, accept_sparse=['csr', 'csc', 'coo'])
614615 rng = check_random_state(random_state)
615616

616617
if not (0 < scaling < 1):

0 commit comments

Comments
 (0)
0