Skip to content

Commit

Permalink
Added check_X_y to lasso_stability_path() (scikit-learn#7534)
Browse files Browse the repository at this point in the history
  • Loading branch information
zorroblue authored and agramfort committed Mar 3, 2017
1 parent f38231e commit 8c7ab17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sklearn/linear_model/randomized_l1.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ def lasso_stability_path(X, y, scaling=0.5, random_state=None,
-----
See examples/linear_model/plot_sparse_recovery.py for an example.
"""
X, y = check_X_y(X, y, accept_sparse=['csr', 'csc', 'coo'])
rng = check_random_state(random_state)

if not (0 < scaling < 1):
Expand Down

0 comments on commit 8c7ab17

Please sign in to comment.