Skip to content

Commit 60e91f5

Browse files
committed
BUG oops, *safe_* asarray
1 parent 5ae399f commit 60e91f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/linear_model/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def sparse_center_data(X, y, fit_intercept, normalize=False):
4646
axis 0. Be aware that X will not be centered since it would break
4747
the sparsity, but will be normalized if asked so.
4848
"""
49-
X = np.asarray(X, dtype=np.float64)
49+
X = safe_asarray(X, dtype=np.float64)
5050

5151
if fit_intercept:
5252
X_data = X.data

0 commit comments

Comments
 (0)