This module have the selection methods, like roulette wheel, tournament, ranking, etc.
The Tournament Selector
It accepts the tournamentPool population parameter.
Note
the Tournament Selector uses the Roulette Wheel to pick individuals for the pool
Changed in version 0.6: Changed the parameter poolSize to the tournamentPool, now the selector gets the pool size from the population.
The alternative Tournament Selector
This Tournament Selector don’t uses the Roulette Wheel
It accepts the tournamentPool population parameter.
A key function to return fitness score, used by max()/min()
Parameter: | individual – the individual instance |
---|---|
Return type: | the individual fitness score |
Note
this function is used by the max()/min() python functions
A key function to return raw score
Parameter: | individual – the individual instance |
---|---|
Return type: | the individual raw score |
Note
this function is used by the max()/min() python functions