Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
gAldeia committed Aug 22, 2023
1 parent c10d158 commit 3a9ebc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/brush/deap_api/nsga2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3a9ebc7

Please sign in to comment.