MutualInformationRegression<T>

Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Filter.Univariate

Mutual Information for regression feature selection.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ†’ MutualInformationRegression<T>

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

For regression problems where the target is a number (not a category), mutual information still works by grouping both the feature and target into bins. High MI means knowing the feature helps predict the target value, capturing both linear and nonlinear relationships.

How It Works

Measures the mutual information between each feature and a continuous target. Uses binning to estimate the probability distributions for computing MI.

Constructors

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

Properties

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