Ignore:
Timestamp:
04/11/21 03:21:14 (3 years ago)
Author:
Maciej Komosinski
Message:

Introduced the number of generations as a command-line parameter; refactored; fixed a typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/evolalg/statistics/halloffame_stats.py

    r1113 r1128  
    55class HallOfFameStatistics(Statistics):
    66    def __init__(self, size, fields="fitness"):
    7         self.haloffame = HallOfFameCustom(size, fitness_field=fields)
     7        self.halloffame = HallOfFameCustom(size, fitness_field=fields)
    88
    99    def init(self):
    10         self.haloffame.clear()
     10        self.halloffame.clear()
    1111
    1212    def collect(self, population):
    13         self.haloffame.update(population)
     13        self.halloffame.update(population)
Note: See TracChangeset for help on using the changeset viewer.