Minor edits

This commit is contained in:
SimpleArt
2020-10-25 22:36:54 -04:00
parent 3625453a28
commit ae74ce1766
3 changed files with 16 additions and 12 deletions

View File

@ -55,7 +55,8 @@ class Parent_Selection:
that it will be selected. Using the example of a casino roulette wheel.
Where the chromosomes are the numbers to be selected and the board size for
those numbers are directly proportional to the chromosome's current fitness. Where
the ball falls is a randomly generated number between 0 and 1."""
the ball falls is a randomly generated number between 0 and 1.
"""
# Make sure the population is sorted by fitness
ga.population.sort_by_best_fitness(ga)