DistanceCorrelationSelector<T>

Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Nonlinear

Distance Correlation based Feature Selection.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ†’ DistanceCorrelationSelector<T>

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Distance correlation measures dependence between variables using pairwise distances. Unlike Pearson correlation which only detects linear relationships, distance correlation equals zero if and only if the variables are truly independent. It ranges from 0 to 1.

How It Works

Selects features based on distance correlation with the target, which detects all types of dependence including nonlinear.

Constructors

Constructor Summary
DistanceCorrelationSelector(int nFeaturesToSelect, int[] columnIndices)

Properties

Property Summary
Vector<T> DCorValues { 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)