AprioriBasedSelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Association

Apriori-based Association Rule Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Association rules find patterns like “people who buy bread often buy butter.” We apply this to features: features that “associate” strongly with the target class (high confidence) and appear often (high support) are selected.

How It Works

Uses association rule mining concepts to find features that frequently co-occur with the target class, selecting features with high support and confidence.

Constructors

Constructor Summary
AprioriBasedSelector(int nFeaturesToSelect, double minSupport, double minConfidence, int nBins, int[] columnIndices)

Properties

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