Changeset 1139 for framspy/evolalg/mutation_cross/frams_cross.py
- Timestamp:
- 05/08/21 12:42:58 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/mutation_cross/frams_cross.py
r1113 r1139 6 6 7 7 class FramsCross(FramsStep): 8 def __init__(self, frams_lib, commands, cross_prob ):9 super().__init__(frams_lib, commands )8 def __init__(self, frams_lib, commands, cross_prob, *args, **kwargs): 9 super().__init__(frams_lib, commands, *args, **kwargs) 10 10 self.cross_prob = cross_prob 11 11 12 12 def call(self, population): 13 super(FramsCross, self).call(population) 13 14 for i in range(1, len(population), 2): 14 15 if random.random() < self.cross_prob:
Note: See TracChangeset
for help on using the changeset viewer.