desdeo_emo.selection.tournament_select
¶
Module Contents¶
Functions¶
|
Tournament selection. Choose number of individuals to participate |
-
desdeo_emo.selection.tournament_select.
tour_select
(fitness, tournament_size)[source]¶ Tournament selection. Choose number of individuals to participate and select the one with the best fitness.
- Parameters
fitness (array_like) – An array of each individual’s fitness.
tournament_size (int) – Number of participants in the tournament.
- Returns
The index of the best individual.
- Return type
int