TwoWayANOVASelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Statistical
Two-Way ANOVA based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ TwoWayANOVASelector<T>
Implements: IFixedCountFeatureSelector<T>
For Beginners
Two-way ANOVA extends one-way ANOVA by considering two grouping variables simultaneously. It can detect main effects of each factor and interaction effects between them. Features with significant F-statistics for either main effects or interactions are selected.
How It Works
Selects features based on two-way ANOVA, which analyzes the effect of two categorical factors and their interaction on a continuous response.
Constructors
| Constructor | Summary |
|---|---|
TwoWayANOVASelector(int nFeaturesToSelect, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> FStatistics { get; } |
|
bool SupportsInverseTransform { get; } |
|
int NFeaturesToSelect { get; } |
|
int[] SelectedIndices { get; } |
Methods
| Method | Summary |
|---|---|
bool[] GetSupportMask() |
|
string[] GetFeatureNamesOut(string[] inputFeatureNames) |
|
void Fit(Matrix<T> data, Vector<T> factor1, Vector<T> factor2) |