PCAVarianceSelector<T>

Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Projection

PCA Variance based Feature Selection.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ†’ PCAVarianceSelector<T>

Implements: IFixedCountFeatureSelector<T>

For Beginners

PCA finds the main directions of variation in data. This selector identifies which original features contribute most to those main directions, keeping features that explain the most variance.

How It Works

Selects features based on their contribution to principal components, measuring how much variance each feature contributes to the data.

Constructors

Constructor Summary
PCAVarianceSelector(int nFeaturesToSelect, int nComponents, int[] columnIndices)

Properties

Property Summary
Vector<T> VarianceContributions { get; }
bool SupportsInverseTransform { get; }
int NComponents { get; }
int NFeaturesToSelect { get; }
int[] SelectedIndices { get; }

Methods

Method Summary
Matrix<T> FitTransform(Matrix<T> data)
bool[] GetSupportMask()
string[] GetFeatureNamesOut(string[] inputFeatureNames)