DistanceCorrelationSelector<T>

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

Distance Correlation based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Unlike Pearson correlation that only finds linear relationships, distance correlation can find any type of relationship. If two variables are truly independent, distance correlation will be zero, but it can also detect complex nonlinear patterns.

How It Works

Selects features based on distance correlation with the target, which can detect both linear and nonlinear dependencies between variables.

Constructors

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

Properties

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