Skip to content

Commit

Permalink
Fixed not inserting value into list of failed variations
Browse files Browse the repository at this point in the history
  • Loading branch information
gAldeia authored Nov 2, 2023
1 parent f341896 commit 69cc07e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/brush/deap_api/nsga2island.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def calculate_statistics(ind):
offspring.extend([off2])
else:
failed_variations += 1
island_failed_variations.append(failed_variations)

# Evaluate (instead of evaluateValidation) to fit the weights of the offspring
fitnesses = toolbox.map(functools.partial(toolbox.evaluate), offspring)
Expand Down Expand Up @@ -156,4 +157,4 @@ def calculate_statistics(ind):
archive = tools.ParetoFront()
archive.update(pop)

return archive, logbook
return archive, logbook

0 comments on commit 69cc07e

Please sign in to comment.