mlproject.training.feature_selection#
Functions for feature reduction and selection.
Functions
Crossover two individuals and fix them to have a specific number of selected features. |
|
Build and apply a feature selection pipeline to remove correlated and irrelevant features. |
|
Calculate the Hamming distance between two individuals. |
|
Initialize an individual with a fixed number of selected features. |
|
Check if an individual is diverse enough from a population based on Hamming distance. |
|
Mixed selection strategy: combines elitism and random selection. |
|
Mutate an individual and ensure it has exactly num_selected_features selected. |
|
Calculate the entropy of a population of binary individuals. |
Classes
Genetic Algorithm Feature Selector using DEAP. |