A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.pytorch.org/docs/stable/generated/torch.pca_lowrank.html below:

torch.pca_lowrank — PyTorch 2.8 documentation

Performs linear Principal Component Analysis (PCA) on a low-rank matrix, batches of such matrices, or sparse matrix.

This function returns a namedtuple (U, S, V) which is the nearly optimal approximation of a singular value decomposition of a centered matrix A A A such that A ≈ U diag ⁡ ( S ) VH A \approx U \operatorname{diag}(S) V^{\text{H}} AUdiag(S)VH

Note

The relation of (U, S, V) to PCA is as follows:

Note

Different from the standard SVD, the size of returned matrices depend on the specified rank and q values as follows:

Note

To obtain repeatable results, reset the seed for the pseudorandom number generator

Parameters
Return type

tuple[torch.Tensor, torch.Tensor, torch.Tensor]

References:

- Nathan Halko, Per-Gunnar Martinsson, and Joel Tropp, Finding
  structure with randomness: probabilistic algorithms for
  constructing approximate matrix decompositions,
  arXiv:0909.4061 [math.NA; math.PR], 2009 (available at
  `arXiv <http://arxiv.org/abs/0909.4061>`_).

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