From 75e895eb926f69b5d04a7c85d197519bc3e1ae0f Mon Sep 17 00:00:00 2001 From: Joshua Loyal Date: Mon, 1 Jun 2015 12:56:03 -0400 Subject: [PATCH] Updated _std docstring in StandardScaler to make internal handling of zero values explicit. --- sklearn/preprocessing/data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sklearn/preprocessing/data.py b/sklearn/preprocessing/data.py index 642329f851055..8fd7d35072632 100644 --- a/sklearn/preprocessing/data.py +++ b/sklearn/preprocessing/data.py @@ -319,7 +319,8 @@ class StandardScaler(BaseEstimator, TransformerMixin): The mean value for each feature in the training set. std_ : array of floats with shape [n_features] - The standard deviation for each feature in the training set. + The standard deviation for each feature in the training set. + Set to one if the standard deviation is zero for a given feature. See also --------