src.gridmind.utils.evo_util.selection
Attributes
Classes
Module Contents
- class src.gridmind.utils.evo_util.selection.Selection[source]
-
- static _convert_none_to_numeric(population: List[gridmind.algorithms.evolutionary_rl.neuroevolution.neuro_agent.NeuroAgent])[source]
Set fitness to -inf if None
- static fitness_proportionate_selection(population: List[gridmind.algorithms.evolutionary_rl.neuroevolution.neuro_agent.NeuroAgent], num_selection: int = 1)[source]
- static truncation_selection(population: List[gridmind.algorithms.evolutionary_rl.neuroevolution.neuro_agent.NeuroAgent], num_selection: int = 1)[source]
- static random_selection(population: List[gridmind.algorithms.evolutionary_rl.neuroevolution.neuro_agent.NeuroAgent], num_selection: int = 1)[source]