You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You might consider providing an option for using random.sample() to choose candidates for tournament selection. In my experience it's much faster, plus it won't pick duplicate candidates.
The code would look like:
tournament_pool = random.sample(population, pool_size)
The text was updated successfully, but these errors were encountered:
You might consider providing an option for using random.sample() to choose candidates for tournament selection. In my experience it's much faster, plus it won't pick duplicate candidates.
The code would look like:
tournament_pool = random.sample(population, pool_size)
The text was updated successfully, but these errors were encountered: