ANOVAFTest<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Filter.Univariate
ANOVA F-test for feature selection in multi-class classification.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → ANOVAFTest<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
ANOVA asks: “Does this feature have different average values across the different classes?” If a feature has very similar averages in all classes, it can’t help tell them apart. Features with high F-scores have means that vary significantly between classes.
How It Works
Uses one-way Analysis of Variance to test if feature means differ significantly across multiple classes. Features with high F-statistics indicate strong discriminative power between classes.
Constructors
| Constructor | Summary |
|---|---|
ANOVAFTest(int nFeaturesToSelect, double pValueThreshold, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> FStatistics { get; } |
|
Vector<T> PValues { 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) |