KendallTau<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Filter.Correlation

Kendall Tau Correlation for feature selection.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → KendallTau<T>

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Kendall Tau looks at every pair of data points and asks: “Do they agree on the ranking?” If both feature and target say A > B, that’s concordant. If they disagree, that’s discordant. More concordant pairs mean stronger positive correlation.

How It Works

Kendall Tau measures the ordinal association between features and target by counting concordant and discordant pairs. It’s robust to outliers and doesn’t assume a specific distribution.

Constructors

Constructor Summary
KendallTau(int nFeaturesToSelect, bool useTauB, int[] columnIndices)

Properties

Property Summary
Vector<T> TauScores { get; }
bool SupportsInverseTransform { get; }
bool UseTauB { 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)