GreyWolfOptimizer<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Metaheuristic
Grey Wolf Optimizer (GWO) for feature selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ GreyWolfOptimizer<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Imagine a wolf pack hunting. The leaders (alpha, beta, delta) guide the others toward prey. In optimization, this translates to the best solutions guiding the search. Wolves encircle prey and then attack - similarly, we narrow in on good feature subsets.
How It Works
GWO mimics the leadership hierarchy and hunting mechanism of grey wolves. Alpha, beta, and delta wolves guide the pack toward optimal solutions.
Constructors
| Constructor | Summary |
|---|---|
GreyWolfOptimizer(int nFeaturesToSelect, int populationSize, int maxIterations, int? randomState, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> FeatureScores { get; } |
|
bool SupportsInverseTransform { get; } |
|
int MaxIterations { get; } |
|
int NFeaturesToSelect { get; } |
|
int PopulationSize { 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) |