Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit a1b5c1e

Browse files
author
Tanguy Damart
committed
Fix retrocompatibility
1 parent 6880431 commit a1b5c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bluepyopt/deapext/optimisations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def run(self,
284284
else:
285285
pop = self.toolbox.population(n=offspring_size)
286286

287-
stats = deap.tools.Statistics(key=lambda ind: ind.fitness.reduce)
287+
stats = deap.tools.Statistics(key=lambda ind: ind.fitness.sum)
288288
import numpy
289289
stats.register("avg", numpy.mean)
290290
stats.register("std", numpy.std)

0 commit comments

Comments
 (0)