Changeset 1139 for framspy/evolalg/fitness/multiple_evaluations.py
- Timestamp:
- 05/08/21 12:42:58 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/fitness/multiple_evaluations.py
r1113 r1139 7 7 class MultipleEvaluationFitness(FitnessStep): 8 8 def __init__(self, frams_lib, fields: Dict, fields_defaults: Dict, commands: List[str] = None, 9 vectorized: bool = True, number_evaluations = 10 ):10 super().__init__(frams_lib, fields, fields_defaults, commands, vectorized )9 vectorized: bool = True, number_evaluations = 10, *args, **kwargs): 10 super().__init__(frams_lib, fields, fields_defaults, commands, vectorized, *args, **kwargs) 11 11 self.number_evaluations = number_evaluations 12 12 13 13 14 14 def call(self, population: List[Individual]): 15 super(MultipleEvaluationFitness, self).call(population) 15 16 pop = copy.deepcopy(population) 16 17 statistics = [{} for _ in range(len(population))]
Note: See TracChangeset
for help on using the changeset viewer.