8000 Merge pull request #4796 from joshloyal/standard-scaler-std-doc · scikit-learn/scikit-learn@98ca513 · GitHub
[go: up one dir, main page]

Skip to content

Commit 98ca513

Browse files
committed
Merge pull request #4796 from joshloyal/standard-scaler-std-doc
[MRG+1] Updated _std docstring in StandardScaler to make internal handling of zero values explicit.
2 parents fcf9cb4 + 75e895e commit 98ca513

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
@@ -327,7 +327,8 @@ class StandardScaler(BaseEstimator, TransformerMixin):
327327
The mean value for each feature in the training set.
328328
329329
std_ : array of floats with shape [n_features]
330-
The standard deviation for each feature in the training set.
330+
The standard deviation for each feature in the training set.
331+
Set to one if the standard deviation is zero for a given feature.
331332
332333
See also
333334
--------

0 commit comments

Comments
 (0)
0