LDAProjectionSelector<T>

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

Linear Discriminant Analysis Projection based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

LDA finds directions that best separate classes. This selector measures how much each feature contributes to these separating directions, keeping features that help distinguish between groups.

How It Works

Selects features based on their contribution to class separation using the ratio of between-class to within-class variance.

Constructors

Constructor Summary
LDAProjectionSelector(int nFeaturesToSelect, int[] columnIndices)

Properties

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

Methods

Method Summary
Matrix<T> FitTransform(Matrix<T> data, Vector<T> target)
bool[] GetSupportMask()
string[] GetFeatureNamesOut(string[] inputFeatureNames)
void Fit(Matrix<T> data, Vector<T> target)