From 1b35a139000d01707e7d3c7ede740f1b206e32e8 Mon Sep 17 00:00:00 2001 From: SimpleArt <71458112+SimpleArt@users.noreply.github.com> Date: Mon, 23 Nov 2020 11:54:18 -0500 Subject: [PATCH] Minor logical bug --- src/parent_selection/parent_selection_methods.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parent_selection/parent_selection_methods.py b/src/parent_selection/parent_selection_methods.py index 87ac82e..1405b02 100644 --- a/src/parent_selection/parent_selection_methods.py +++ b/src/parent_selection/parent_selection_methods.py @@ -89,8 +89,8 @@ class Parent_Selection: class Fitness: @check_selection_probability - @check_positive_fitness @ensure_sorted + @check_positive_fitness def roulette(ga): """Roulette selection works based off of how strong the fitness is of the chromosomes in the population. The stronger the fitness the higher the probability @@ -126,8 +126,8 @@ class Parent_Selection: @check_selection_probability - @check_positive_fitness @ensure_sorted + @check_positive_fitness def stochastic(ga): """Stochastic roulette selection works based off of how strong the fitness is of the chromosomes in the population. The stronger the fitness the higher the probability