KendallTauSelector<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Nonparametric
Kendall’s Tau Correlation based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → KendallTauSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Kendall’s tau measures how often pairs of data points are in the same order for both feature and target. It’s robust to outliers and doesn’t assume a linear relationship, just that both variables tend to increase or decrease together.
How It Works
Selects features based on Kendall’s tau rank correlation coefficient with the target, which measures ordinal association between features and target.
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) |