Fork me on GitHub
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood

Module pca

Search:
Group by:

Procs

proc pca[T: SomeReal](x: Tensor[T]; nb_components = 2): Tensor[T]
Principal Component Analysis (PCA)
Inputs:
  • A matrix of shape [Nb of observations, Nb of features]
  • The number of components to keep (default 2D for 2D projection)
Returns:
  • A matrix of shape [Nb of observations, Nb of components]
  Source Edit