ConditionalEntropySelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Information

Conditional Entropy-based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Conditional entropy measures the uncertainty remaining about the target after knowing a feature’s value. Features that reduce uncertainty the most (lower conditional entropy) are more useful.

How It Works

Selects features that minimize the conditional entropy of the target given the feature, maximizing the information about the target.

Constructors

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

Properties

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