ANOVASelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Filter.Statistical

ANOVA-based feature selection for multi-class problems.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → ANOVASelector<T>

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

ANOVA checks if the average value of a feature is significantly different across multiple groups. If a feature has very different averages for each class, it’s good at distinguishing between them. Unlike the t-test, ANOVA works with any number of classes.

How It Works

Analysis of Variance (ANOVA) extends the t-test to multiple classes. It measures how much the mean of each feature varies across classes compared to within-class variation.

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)