We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ae399f commit 60e91f5Copy full SHA for 60e91f5
sklearn/linear_model/base.py
@@ -46,7 +46,7 @@ def sparse_center_data(X, y, fit_intercept, normalize=False):
46
axis 0. Be aware that X will not be centered since it would break
47
the sparsity, but will be normalized if asked so.
48
"""
49
- X = np.asarray(X, dtype=np.float64)
+ X = safe_asarray(X, dtype=np.float64)
50
51
if fit_intercept:
52
X_data = X.data
0 commit comments