FrequentPatternSelector<T>

Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Association

Frequent Pattern-based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Frequent patterns are combinations of features that appear together often. This method finds which individual features appear most often in patterns that are predictive of the target class, and selects those features.

How It Works

Mines frequent patterns in feature-target associations and selects features that appear in the most discriminative frequent patterns.

Constructors

Constructor Summary
FrequentPatternSelector(int nFeaturesToSelect, double minSupport, int maxPatternSize, int[] columnIndices)

Properties

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