ConditionalEntropySelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Entropy

Conditional Entropy based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Conditional entropy measures how much uncertainty remains about the target after knowing a feature’s value. Features that reduce uncertainty the most (lower conditional entropy) are most informative.

How It Works

Selects features based on their ability to reduce uncertainty about the target, measured by conditional entropy H(Y|X).

Constructors

Constructor Summary
ConditionalEntropySelector(int nFeaturesToSelect, int nBins, int[] columnIndices)

Properties

Property Summary
Vector<T> EntropyReductions { get; }
bool SupportsInverseTransform { get; }
int NBins { 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)