source: framspy/evolalg/statistics/statistics.py @ 1139

Last change on this file since 1139 was 1139, checked in by Maciej Komosinski, 3 years ago

Added --debug mode that prints names of steps; final multiple evaluation now evaluates genotypes in hall of fame instead of the last population

File size: 303 bytes
Line 
1from abc import abstractmethod
2
3from evolalg.base.step import Step
4
5
6class Statistics(Step):
7
8    @abstractmethod
9    def collect(self, population):
10        pass
11
12    def call(self, population):
13        super(Statistics, self).call(population)
14        self.collect(population)
15        return population
Note: See TracBrowser for help on using the repository browser.