Last change
on this file since 1167 was
1139,
checked in by Maciej Komosinski, 4 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:
282 bytes
|
Rev | Line | |
---|
[1113] | 1 | |
---|
| 2 | |
---|
| 3 | from evolalg.repair.remove.remove import Remove |
---|
| 4 | class LambdaRemove(Remove): |
---|
[1139] | 5 | def __init__(self, func, *args, **kwargs): |
---|
| 6 | super(LambdaRemove, self).__init__(*args, **kwargs) |
---|
[1113] | 7 | self.func = func |
---|
| 8 | |
---|
| 9 | def remove(self, individual): |
---|
| 10 | return self.func(individual) |
---|
Note: See
TracBrowser
for help on using the repository browser.