BhattacharyyaDistanceSelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Supervised

Bhattacharyya Distance Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

The Bhattacharyya distance measures how much two probability distributions overlap. Features with high Bhattacharyya distance have class distributions that don’t overlap much, making them good for distinguishing between classes.

How It Works

Selects features based on the Bhattacharyya distance between class distributions, which measures the separability between classes.

Constructors

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

Properties

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