From 9101072f26fa50208886af85619d6329737fa27d Mon Sep 17 00:00:00 2001 From: Daniel Wilczak <44122838+danielwilczak101@users.noreply.github.com> Date: Sun, 18 Oct 2020 23:28:07 -0400 Subject: [PATCH] Update parent_selection_methods.py --- src/parent_selection/parent_selection_methods.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/parent_selection/parent_selection_methods.py b/src/parent_selection/parent_selection_methods.py index 8bc272d..e4aa21f 100644 --- a/src/parent_selection/parent_selection_methods.py +++ b/src/parent_selection/parent_selection_methods.py @@ -6,8 +6,9 @@ class Parent_Selection: 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 - The total number of parents selected is determined by parent_ratio, an attribute to the GA object. + 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. The total number + of parents selected is determined by parent_ratio, an attribute to the GA object. """ # Error if can't select parents