@@ -27,16 +27,16 @@ class TruncatedSVD(TransformerMixin, BaseEstimator):
27
27
This transformer performs linear dimensionality reduction by means of
28
28
truncated singular value decomposition (SVD). Contrary to PCA, this
29
29
estimator does not center the data before computing the singular value
30
- decomposition. This means it can work with scipy. sparse matrices
30
+ decomposition. This means it can work with sparse matrices
31
31
efficiently.
32
32
33
33
In particular, truncated SVD works on term count/tf-idf matrices as
34
- returned by the vectorizers in sklearn.feature_extraction.text. In that
35
- context, it is known as latent semantic analysis (LSA).
34
+ returned by the vectorizers in :mod:` sklearn.feature_extraction.text` . In
35
+ that context, it is known as latent semantic analysis (LSA).
36
36
37
37
This estimator supports two algorithms: a fast randomized SVD solver, and
38
- a "naive" algorithm that uses ARPACK as an eigensolver on ( X * X.T) or
39
- ( X.T * X) , whichever is more efficient.
38
+ a "naive" algorithm that uses ARPACK as an eigensolver on ` X * X.T` or
39
+ ` X.T * X` , whichever is more efficient.
40
40
41
41
Read more in the :ref:`User Guide <LSA>`.
42
42
@@ -56,8 +56,8 @@ class TruncatedSVD(TransformerMixin, BaseEstimator):
56
56
n_iter : int, optional (default 5)
57
57
Number of iterations for randomized SVD solver. Not used by ARPACK. The
58
58
default is larger than the default in
59
-
58BC
`~sklearn.utils.extmath.randomized_svd` to handle sparse matrices that
60
- may have large slowly decaying spectrum.
59
+ :func: `~sklearn.utils.extmath.randomized_svd` to handle sparse
60
+ matrices that may have large slowly decaying spectrum.
61
61
62
62
random_state : int, RandomState instance, default=None
63
63
Used during randomized svd. Pass an int for reproducible results across
0 commit comments