ANOVASelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Statistical
ANOVA F-Test based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ ANOVASelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
ANOVA checks if groups differ significantly. Features with high F-scores have very different values across classes, making them useful for classification. Higher F means more class separation.
How It Works
Selects features based on their ANOVA F-statistic, measuring the ratio of between-group variance to within-group variance.
Constructors
| Constructor | Summary |
|---|---|
ANOVASelector(int nFeaturesToSelect, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> FStatistics { 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) |