ChebyshevDistanceSelector<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Distance
Chebyshev Distance based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → ChebyshevDistanceSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Chebyshev distance is the maximum difference in any single dimension. It’s useful when you care about the worst-case difference between classes. Features with large maximum separations are preferred.
How It Works
Selects features that maximize class separation based on Chebyshev (L-infinity) distance between class centroids.
Constructors
| Constructor | Summary |
|---|---|
ChebyshevDistanceSelector(int nFeaturesToSelect, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> DistanceScores { 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) |