TTestSelector<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Supervised
T-Test Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → TTestSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
The t-test checks whether two groups have significantly different means. Features with large t-statistics have means that are very different between classes, making them useful for classification.
How It Works
Uses the Student’s t-test to select features that show statistically significant differences between two classes.
Constructors
| Constructor | Summary |
|---|---|
TTestSelector(int nFeaturesToSelect, bool equalVariance, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> TStatistics { 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) |