InteractionStrengthSelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Interaction
Interaction Strength based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ InteractionStrengthSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Some features are more useful when combined with others (like age and income together predicting spending). This selector finds features that interact strongly with others.
How It Works
Selects features based on their interaction strength with other features in predicting the target.
Constructors
| Constructor | Summary |
|---|---|
InteractionStrengthSelector(int nFeaturesToSelect, int topInteractions, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> InteractionScores { get; } |
|
bool SupportsInverseTransform { get; } |
|
int NFeaturesToSelect { get; } |
|
int TopInteractions { 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) |