Skip to content

Commit

Permalink
comment change
Browse files Browse the repository at this point in the history
  • Loading branch information
NormannK authored Jan 10, 2025
1 parent 81845ec commit 1bc53b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/akkudoktoreos/optimization/genetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ def optimize(
hof = tools.HallOfFame(1)
stats = tools.Statistics(lambda ind: ind.fitness.values)
stats.register("min", np.min)
stats.register("avg", np.mean) # Register average fitness
stats.register("max", np.max) # Register average fitness
stats.register("avg", np.mean)
stats.register("max", np.max)

if self.verbose:
print("Start optimize:", start_solution)
Expand Down

0 comments on commit 1bc53b7

Please sign in to comment.