InteractionInformation<T>

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

Interaction Information for feature selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

This method finds features that work together in unexpected ways. Sometimes two features alone are useless, but together they’re very predictive (synergy). Other times, features duplicate each other’s information (redundancy). Interaction Information captures both.

How It Works

Interaction Information measures the amount of information bound up in a set of variables that is not present in any subset. It can be positive (synergy) or negative (redundancy), revealing higher-order dependencies.

Constructors

Constructor Summary
InteractionInformation(int nFeaturesToSelect, int nBins, bool preferSynergy, int[] columnIndices)

Properties

Property Summary
Vector<T> InteractionScores { get; }
Vector<T> MIScores { get; }
bool PreferSynergy { 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)