Selection

In evolutionary and genetic algorithms, the selection operator is used to select individuals from the current population to which the mutation (and crossover, for ha) operators will be applied. The resulting estimated set of individuals will participate in the formation of a new population.

Best selection

Selects the best individuals among the number_of_bests.

'selection': {
    'slug': 'selection:best',
    'seed': <optional number>,
    'number_of_bests': <number>
}

Roulette selection

Probability that an individual will be selected is inversely related to the value of its fitness.

'selection': {
    'slug': 'selection:roulette',
    'seed': <optional number>
}