_multiple_unique
Module Contents
Functions
|
Select multiple distinct individuals from a population using the provided selection function. |
Attributes
- TIndividual
- TFitness
- multiple_unique(selection_size: int, population: list[TIndividual], fitnesses: list[TFitness], selection_function: Callable[[list[TIndividual], list[TFitness]], int]) numpy.typing.NDArray[numpy.float_]
Select multiple distinct individuals from a population using the provided selection function.
- Parameters:
selection_size – Amount of of individuals to select.
population – List of individuals to select from.
fitnesses – Fitnesses of the population.
selection_function – Function that select a single individual from a population. ([TIndividual], [TFitness]) -> index.
- Returns:
Indices of the selected individuals.