FClassification<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Filter.Classification
F-statistic based feature selection for classification (ANOVA F-test).
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ FClassification<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
The F-test checks if the average values of a feature are different across classes. If class A has very different values than class B for a feature, that feature gets a high score because it helps tell the classes apart.
How It Works
F-Classification uses ANOVA F-test to score features based on their ability to discriminate between class means. Features with high F-scores have significantly different means across classes.
Constructors
| Constructor | Summary |
|---|---|
FClassification(int nFeaturesToSelect, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> FScores { 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) |