Changeset 1139 for framspy/evolalg/statistics/statistics_deap.py
- Timestamp:
- 05/08/21 12:42:58 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/statistics/statistics_deap.py
r1113 r1139 5 5 6 6 class StatisticsDeap(Statistics): 7 def __init__(self, stats, extract_fn=lambda ind: ind.fitness, verbose=True): 7 def __init__(self, stats, extract_fn=lambda ind: ind.fitness, verbose=True, *args, **kwargs): 8 super(StatisticsDeap, self).__init__(*args, **kwargs) 8 9 self.stats = tools.Statistics(extract_fn) 9 10 for name, fn in stats:
Note: See TracChangeset
for help on using the changeset viewer.