Changeset 1128 for framspy/evolalg/statistics
- Timestamp:
- 04/11/21 03:21:14 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/statistics/halloffame_stats.py
r1113 r1128 5 5 class HallOfFameStatistics(Statistics): 6 6 def __init__(self, size, fields="fitness"): 7 self.hal offame = HallOfFameCustom(size, fitness_field=fields)7 self.halloffame = HallOfFameCustom(size, fitness_field=fields) 8 8 9 9 def init(self): 10 self.hal offame.clear()10 self.halloffame.clear() 11 11 12 12 def collect(self, population): 13 self.hal offame.update(population)13 self.halloffame.update(population)
Note: See TracChangeset
for help on using the changeset viewer.