Skip to content

Commit 398ffed

Browse files
minghui-liuamueller
authored andcommitted
Removed DataConversionWarning in Normalize (scikit-learn#8712)
1 parent 676f878 commit 398ffed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/preprocessing/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ def normalize(X, norm='l2', axis=1, copy=True, return_norm=False):
12811281
else:
12821282
raise ValueError("'%d' is not a supported axis" % axis)
12831283

1284-
X = check_array(X, sparse_format, copy=copy, warn_on_dtype=True,
1284+
X = check_array(X, sparse_format, copy=copy,
12851285
estimator='the normalize function', dtype=FLOAT_DTYPES)
12861286
if axis == 0:
12871287
X = X.T

0 commit comments

Comments
 (0)