DifferentialEvolutionSelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Genetic
Differential Evolution based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ DifferentialEvolutionSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Differential evolution creates new solutions by taking the difference between existing solutions and adding it to another. This helps explore feature combinations more efficiently than random mutation.
How It Works
Uses differential evolution algorithm to optimize feature subsets by combining differences between population members to explore the solution space.
Constructors
| Constructor | Summary |
|---|---|
DifferentialEvolutionSelector(int nFeaturesToSelect, int populationSize, int nGenerations, double mutationFactor, double crossoverRate, int? randomState, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> FeatureImportances { get; } |
|
bool SupportsInverseTransform { get; } |
|
int NFeaturesToSelect { get; } |
|
int NGenerations { 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) |