MutualInformationSelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Nonlinear
Mutual Information based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ MutualInformationSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Mutual information measures how much knowing one variable tells you about another. Unlike correlation, it detects any type of relationship - linear, nonlinear, or complex. High MI means the feature is strongly related to the target in some way.
How It Works
Selects features based on their mutual information with the target, capturing both linear and nonlinear dependencies.
Constructors
| Constructor | Summary |
|---|---|
MutualInformationSelector(int nFeaturesToSelect, int nBins, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> MIValues { 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) |