FRegression<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Filter.Regression
F-statistic based feature selection for regression.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ FRegression<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
The F-test checks how well each feature can predict the target using a simple line (linear relationship). Features that follow a straighter line with the target get higher scores. Good for finding features that have clear linear patterns with your outcome.
How It Works
F-Regression computes the F-statistic between each feature and the target, which measures the linear dependency between them. Features with higher F-scores have stronger linear relationships with the target.
Constructors
| Constructor | Summary |
|---|---|
FRegression(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) |