Bases: DRModule
Principal Component Analysis module.
n_components (int, default=2) – Number of components to project the input data onto.
device (str, default="auto") – Device on which the computations are performed.
verbose (bool, default=False) – Whether to print information during the computations.
random_state (float, default=None) – Random seed for reproducibility.
svd_driver (str, optional) – Name of the cuSOLVER method to be used for torch.linalg.svd. This keyword argument only works on CUDA inputs. Available options are: None, gesvd, gesvdj and gesvda. Defaults to None.
Project the input data onto the PCA components.
X (torch.Tensor or np.ndarray of shape (n_samples, n_features)) – Data to project onto the PCA components.
X_new – Projected data.
torch.Tensor or np.ndarray of shape (n_samples, n_components)
PCA
:#
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4