PointBiserialSelector<T>

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

Point-Biserial Correlation Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Point-biserial correlation measures how well a continuous feature separates two groups (like positive vs negative cases). Features with high point-biserial correlation have very different values for the two classes, making them useful for classification.

How It Works

Uses point-biserial correlation for feature selection when the target is binary. This is the correlation between a continuous variable and a binary variable.

Constructors

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

Properties

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