source: framspy/evolalg/repair/remove/ @ 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: 282 bytes
3from import Remove
4class LambdaRemove(Remove):
5    def __init__(self, func, *args, **kwargs):
6        super(LambdaRemove, self).__init__(*args, **kwargs)
7        self.func = func
9    def remove(self, individual):
10        return self.func(individual)
Note: See TracBrowser for help on using the repository browser.