From e7f696fd06c7901ded0b0a14e756db0cdcb20efc Mon Sep 17 00:00:00 2001 From: SimpleArt <71458112+SimpleArt@users.noreply.github.com> Date: Wed, 2 Dec 2020 18:59:40 -0500 Subject: [PATCH] Better word choice for comment --- src/parent_selection/parent_selection_methods.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parent_selection/parent_selection_methods.py b/src/parent_selection/parent_selection_methods.py index 7692cdf..08ab105 100644 --- a/src/parent_selection/parent_selection_methods.py +++ b/src/parent_selection/parent_selection_methods.py @@ -204,15 +204,15 @@ class Parent_Selection: in range(len(ga.population)) ] - offset = sum(weights) * (1 - ga.selection_probability) + inflation = sum(weights) * (1 - ga.selection_probability) # Rescale and adjust using selection_probability so that - # if selection_probability is high, a low offset is used, + # if selection_probability is high, a low inflation is used, # making selection mostly based on fitness. # if selection_probability is low, a high offset is used, - # inflating the weights so that everyone has a more equal chance. + # so everyone has a more equal chance. weights = [ - weight + offset + weight + inflation for weight in weights ]