KendallTauSelector<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Statistical
Kendall’s Tau Correlation Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → KendallTauSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Kendall’s tau measures how well the ordering of one variable matches the ordering of another. It counts pairs where both variables agree on which item is “larger” vs pairs where they disagree. It’s robust to outliers because it only uses ranks, not actual values.
How It Works
Selects features based on their Kendall’s tau rank correlation with the target, which is robust to outliers and non-linear monotonic relationships.
Constructors
| Constructor | Summary |
|---|---|
KendallTauSelector(int nFeaturesToSelect, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> TauScores { 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) |