PCA¶
crank_ml.decomposition.pca.PCA
Performs linear Principal Component Analysis (PCA) on a low-rank matrix, batches of such matrices, or sparse matrix. This approach uses the nearly optimal approximation of a singular value decomposition of a centered matrix.
Our implementation is a wrapper over the pytorch
implementation with polyak averaging over the weights. As a consequence this may not be stable.
Parameters¶
Parameter | Description |
---|---|
n_features |
Number of input features |
n_components |
(Default: 6 ) Maximum number of components to keep. |
polyak_weight |
(Default: 0.1 ) The weight update rate, a reasonable value if between 0 and 1 |