File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
from .pygad import * # Relative import.
2
2
3
- __version__ = "2.15.0 "
3
+ __version__ = "2.15.1 "
Original file line number Diff line number Diff line change @@ -1198,7 +1198,7 @@ def run(self):
1198
1198
self .population [0 :self .last_generation_parents .shape [0 ], :] = self .last_generation_parents
1199
1199
self .population [self .last_generation_parents .shape [0 ]:, :] = self .last_generation_offspring_mutation
1200
1200
elif (self .keep_parents > 0 ):
1201
- parents_to_keep = self .steady_state_selection (self .last_generation_fitness , num_parents = self .keep_parents )
1201
+ parents_to_keep , _ = self .steady_state_selection (self .last_generation_fitness , num_parents = self .keep_parents )
1202
1202
self .population [0 :parents_to_keep .shape [0 ], :] = parents_to_keep
1203
1203
self .population [parents_to_keep .shape [0 ]:, :] = self .last_generation_offspring_mutation
1204
1204
You can’t perform that action at this time.
0 commit comments