spectrochempy.PCA.reduce

PCA.reduce(n_pc=None)[source]

Apply a dimensionality reduction to the X dataset of shape [M, N].

Loadings L with shape [n_pc, N] and scores S with shape [M, n_pc] are obtained using the following decomposition : \(X = S.L^T\).

Parameters

n_pc (int, optional) – The number of principal components to compute. If not set all components are returned, except if n_pc is set to auto for an automatic determination of the number of components.

Returns

S, LT (|NDDataset| objects.) – n_pc loadings and their corresponding scores for each observations.

Examples using spectrochempy.PCA.reduce

PCA analysis example

PCA analysis example

NDDataset PCA analysis example

NDDataset PCA analysis example