PointBiserial<T>

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

Point-Biserial Correlation for feature selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

When you’re trying to predict something that has only two outcomes (like yes/no, pass/fail), this measures how well a continuous feature separates the two groups. Higher absolute values mean the feature is better at distinguishing between the classes.

How It Works

Point-biserial correlation measures the relationship between a continuous variable and a dichotomous (binary) variable. It’s the appropriate correlation measure when the target is binary.

Constructors

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

Properties

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