Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c931bf0

Browse files
committed
FIX #7293: StandardScaler.with_mean in preprocessing doc
1 parent bfbc0bc commit c931bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/modules/preprocessing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ sparse inputs, especially if features are on different scales.
187187
:class:`MaxAbsScaler` and :func:`maxabs_scale` were specifically designed
188188
for scaling sparse data, and are the recommended way to go about this.
189189
However, :func:`scale` and :class:`StandardScaler` can accept ``scipy.sparse``
190-
matrices as input, as long as ``with_centering=False`` is explicitly passed
190+
matrices as input, as long as ``with_mean=False`` is explicitly passed
191191
to the constructor. Otherwise a ``ValueError`` will be raised as
192192
silently centering would break the sparsity and would often crash the
193193
execution by allocating excessive amounts of memory unintentionally.

0 commit comments

Comments
 (0)