Skip to content

Commit 31d3c3e

Browse files
vincentpham1991amueller
authored andcommitted
fixed error in documentation (scikit-learn#8014)
1 parent 61ec187 commit 31d3c3e

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
@@ -146,7 +146,7 @@ full formula is::
146146

147147
X_std = (X - X.min(axis=0)) / (X.max(axis=0) - X.min(axis=0))
148148

149-
X_scaled = X_std / (max - min) + min
149+
X_scaled = X_std * (max - min) + min
150150

151151
:class:`MaxAbsScaler` works in a very similar fashion, but scales in a way
152152
that the training data lies within the range ``[-1, 1]`` by dividing through

0 commit comments

Comments
 (0)