LDABasedSelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Supervised
Linear Discriminant Analysis (LDA) based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ LDABasedSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
LDA finds directions in your data where different classes are most separated. Features that contribute most to these discriminating directions are the most useful for classification.
How It Works
Uses LDA to identify features that maximize class separability by analyzing the between-class and within-class scatter.
Constructors
| Constructor | Summary |
|---|---|
LDABasedSelector(int nFeaturesToSelect, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> DiscriminantScores { 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) |