MADSelector<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Range
Median Absolute Deviation (MAD) based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → MADSelector<T>
Implements: IFixedCountFeatureSelector<T>
For Beginners
MAD measures how spread out values are around the median. Unlike standard deviation, MAD isn’t affected by extreme values. Features with higher MAD have more robust variation in their data.
How It Works
Selects features based on their median absolute deviation, which is a robust measure of variability that is resistant to outliers.
Constructors
| Constructor | Summary |
|---|---|
MADSelector(int nFeaturesToSelect, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> MADValues { get; } |
|
bool SupportsInverseTransform { get; } |
|
int NFeaturesToSelect { get; } |
|
int[] SelectedIndices { get; } |
Methods
| Method | Summary |
|---|---|
Matrix<T> FitTransform(Matrix<T> data) |
|
bool[] GetSupportMask() |
|
string[] GetFeatureNamesOut(string[] inputFeatureNames) |