class

Crystalla::Transformations::PCA

Inherits Reference / Object

Constructors

new(x : Crystalla::Matrix, n_components : Int32)

Initializes a new PCA object with the model to fit and the number of components to use The model should be a n_samples * n_features matrix

Source

Instance methods

mean_by_feature
Source
n_components
Source

Reduces the input matrix based on the dimensions obtained from the original model

Source
transform

Reduces the original model to the specified number of components

Source