source:
framspy/evolalg_steps/statistics/statistics.py
Last change on this file was 1185, checked in by , 2 years ago | |
---|---|
File size: 309 bytes |
Line | |
---|---|
1 | from abc import abstractmethod |
2 | |
3 | from evolalg_steps.base.step import Step |
4 | |
5 | |
6 | class 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.