Changeset 1139 for framspy/evolalg/fitness/fitness_step.py
- Timestamp:
- 05/08/21 12:42:58 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/fitness/fitness_step.py
r1113 r1139 8 8 class FitnessStep(FramsStep): 9 9 def __init__(self, frams_lib, fields: Dict, fields_defaults: Dict, commands: List[str] = None, 10 vectorized: bool = True, evaluation_count=None ):10 vectorized: bool = True, evaluation_count=None, *args, **kwargs): 11 11 12 super().__init__(frams_lib, commands )12 super().__init__(frams_lib, commands, *args, **kwargs) 13 13 self.fields = fields 14 14 self.fields_defaults = fields_defaults … … 28 28 29 29 def call(self, population: List[Individual]): 30 super(FitnessStep, self).call(population) 30 31 if self.vectorized: 31 32 data = self.frams.evaluate([_.genotype for _ in population])
Note: See TracChangeset
for help on using the changeset viewer.