Skip to content

Commit ae86e2f

Browse files
committed
TEST: Fixed doctests for truncated PCA.
1 parent 9fc3420 commit ae86e2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/decomposition/truncated_svd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ class TruncatedSVD(BaseEstimator, TransformerMixin):
9393
TruncatedSVD(algorithm='randomized', n_components=5, n_iter=7,
9494
random_state=42, tol=0.0)
9595
>>> print(svd.explained_variance_ratio_) # doctest: +ELLIPSIS
96-
[ 0.0782... 0.0552... 0.0544... 0.0499... 0.0413...]
96+
[ 0.0606... 0.0584... 0.0497... 0.0434... 0.0372...]
9797
>>> print(svd.explained_variance_ratio_.sum()) # doctest: +ELLIPSIS
98-
0.279...
98+
0.249...
9999
>>> print(svd.singular_values_) # doctest: +ELLIPSIS
100-
[ 2.6318... 2.2215... 2.1939... 2.1010... 1.9317...]
100+
[ 2.5841... 2.5245... 2.3201... 2.1753... 2.0443...]
101101
102102
See also
103103
--------

0 commit comments

Comments
 (0)