InteractionInformationSelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Information

Interaction Information-based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Interaction information measures whether two features together tell us more (synergy) or less (redundancy) about the target than we’d expect from their individual contributions. This helps find features that work well together.

How It Works

Selects features based on their interaction information with the target, capturing synergistic and redundant relationships between feature pairs.

Constructors

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

Properties

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