Last change
on this file since 1310 was
1185,
checked in by Maciej Komosinski, 2 years ago
|
Renamed a module; new name is "evolalg_steps"
|
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.