8000 Merge pull request #4422 from trevorstephens/y_numeric_for_np180 · scikit-learn/scikit-learn@ad26ae4 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad26ae4

Browse files
committed
Merge pull request #4422 from trevorstephens/y_numeric_for_np180
[MRG + 1] [FIX] LarsCV and LassoLarsCV fails for numpy 1.8.0
2 parents 2badad3 + 09e6e12 commit ad26ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/linear_model/least_angle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ def fit(self, X, y):
983983
returns an instance of self.
984984
"""
985985
self.fit_path = True
986-
X, y = check_X_y(X, y)
986+
X, y = check_X_y(X, y, y_numeric=True)
987987

988988
# init cross-validation generator
989989
cv = check_cv(self.cv, X, y, classifier=False)

0 commit comments

Comments
 (0)
0