8000 Updated _std docstring in StandardScaler to make internal handling of · scikit-learn/scikit-learn@75e895e · GitHub
[go: up one dir, main page]

Skip to content

Commit 75e895e

Browse files
committed
Updated _std docstring in StandardScaler to make internal handling of
zero values explicit.
1 parent 04b103f commit 75e895e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/preprocessing/data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ class StandardScaler(BaseEstimator, TransformerMixin):
319319
The mean value for each feature in the training set.
320320
321321
std_ : array of floats with shape [n_features]
322-
The standard deviation for each feature in the training set.
322+
The standard deviation for each feature in the training set.
323+
Set to one if the standard deviation is zero for a given feature.
323324
324325
See also
325326
--------

0 commit comments

Comments
 (0)
0