From a44628f7c522a0cdaf006624e23460dc9eff6eed Mon Sep 17 00:00:00 2001 From: Oleg Stikhin Date: Fri, 3 May 2019 10:32:36 +0300 Subject: [PATCH 1/2] Added version information for PCA.singular_values_ PCA.singular_values_ is added in 0.19; adding this information to the documentation. --- sklearn/decomposition/pca.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sklearn/decomposition/pca.py b/sklearn/decomposition/pca.py index d1cee0345d5e6..94c838bc50c34 100644 --- a/sklearn/decomposition/pca.py +++ b/sklearn/decomposition/pca.py @@ -222,6 +222,8 @@ class PCA(_BasePCA): The singular values corresponding to each of the selected components. The singular values are equal to the 2-norms of the ``n_components`` variables in the lower-dimensional space. + + .. versionadded:: 0.19 mean_ : array, shape (n_features,) Per-feature empirical mean, estimated from the training set. From 337fa771491b7e16f72fce0952726cb747d78adb Mon Sep 17 00:00:00 2001 From: Oleg Stikhin Date: Fri, 3 May 2019 10:40:53 +0300 Subject: [PATCH 2/2] Removed whitespaces from empty line In decomposition/pca.py, removed the whitespaces from the empty line introduced by the previous commit. --- sklearn/decomposition/pca.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/decomposition/pca.py b/sklearn/decomposition/pca.py index 94c838bc50c34..5c8893d141724 100644 --- a/sklearn/decomposition/pca.py +++ b/sklearn/decomposition/pca.py @@ -222,7 +222,7 @@ class PCA(_BasePCA): The singular values corresponding to each of the selected components. The singular values are equal to the 2-norms of the ``n_components`` variables in the lower-dimensional space. - + .. versionadded:: 0.19 mean_ : array, shape (n_features,)