From 3a9ebc7d7c4278483cb42d90159287341f3d8e04 Mon Sep 17 00:00:00 2001 From: Guilherme Aldeia Date: Tue, 22 Aug 2023 10:23:27 -0400 Subject: [PATCH] Spacing --- src/brush/deap_api/nsga2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/brush/deap_api/nsga2.py b/src/brush/deap_api/nsga2.py index b569ad47..e45d011b 100644 --- a/src/brush/deap_api/nsga2.py +++ b/src/brush/deap_api/nsga2.py @@ -54,7 +54,9 @@ def calculate_statistics(ind): # Begin the generational process for gen in range(1, NGEN): - if (use_batch): #batch will be random only if it is not the size of the entire train set. In this case, we dont need to reevaluate the whole pop + # The batch will be random only if it is not the size of the entire train set. + # In this case, we dont need to reevaluate the whole pop + if (use_batch): batch = toolbox.getBatch() fitnesses = toolbox.map(functools.partial(toolbox.evaluate, data=batch), pop)