Update parent_selection_methods.py

This commit is contained in:
Daniel Wilczak
2020-10-18 23:28:07 -04:00
committed by GitHub
parent dd294db952
commit 9101072f26

View File

@ -6,8 +6,9 @@ class Parent_Selection:
def tournament(ga): def tournament(ga):
""" """
Will make tournaments of size tournament_size and choose the winner (best fitness) from the tournament and use it as a parent for the next generation Will make tournaments of size tournament_size and choose the winner (best fitness)
The total number of parents selected is determined by parent_ratio, an attribute to the GA object. from the tournament and use it as a parent for the next generation. The total number
of parents selected is determined by parent_ratio, an attribute to the GA object.
""" """
# Error if can't select parents # Error if can't select parents