GreyWolfFS<T>

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

Grey Wolf Optimizer for feature selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Like wolves hunting together, this algorithm uses the three best current solutions (alpha, beta, delta) to guide the pack toward better feature combinations.

How It Works

Inspired by grey wolf pack hunting behavior with alpha, beta, delta leaders. Wolves encircle prey (optimal solution) guided by the three best solutions.

Constructors

Constructor Summary
GreyWolfFS(int nFeaturesToSelect, int populationSize, int nIterations, Func<Matrix<T>, Vector<T>, bool[], T> fitnessFunc, int? randomState, int[] columnIndices)

Properties

Property Summary
T BestFitness { get; }
Vector<T> FeatureImportances { 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)