SPEAIISelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.MultiObjective

SPEA-II Multi-objective Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

SPEA-II keeps track of the best solutions found so far in an “archive.” It measures how good a solution is by counting how many other solutions it dominates (is better than in all objectives).

How It Works

Uses the Strength Pareto Evolutionary Algorithm II (SPEA-II) which maintains an archive of non-dominated solutions and uses fine-grained fitness assignment.

Constructors

Constructor Summary
SPEAIISelector(int nFeaturesToSelect, int populationSize, int archiveSize, int nGenerations, int[] columnIndices)

Properties

Property Summary
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)