Last change
on this file since 1139 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
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | from evolalg.repair.remove.remove import Remove |
---|
4 | class LambdaRemove(Remove): |
---|
5 | def __init__(self, func, *args, **kwargs): |
---|
6 | super(LambdaRemove, self).__init__(*args, **kwargs) |
---|
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.