Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73a54d0

Browse files
committed
lobpcg added
1 parent ec61eef commit 73a54d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/decomposition/truncated_svd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class TruncatedSVD(BaseEstimator, TransformerMixin):
9696
0.249...
9797
>>> print(svd.singular_values_) # doctest: +ELLIPSIS
9898
[2.5841... 2.5245... 2.3201... 2.1753... 2.0443...]
99-
>>> # to test LOBPCG:
99+
>>> # to test LOBPCG instead of randomized:
100100
>>> svd = TruncatedSVD(algorithm='lobpcg', n_components=5, n_iter=7, random_state=42)
101101
>>> svd.fit(X)
102102

0 commit comments

Comments
 (0)