Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
perib committed Jun 28, 2023
1 parent 4724480 commit 2e17842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpot2/evolvers/steady_state_evolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ def optimize(self):
if len(parents_df) < 2:
var_ops = ["mutate" for _ in range(n_individuals_to_submit)]
else:
var_ops = [np.random.choice(["crossover","mutate_then_crossover","crossover_then_mutate",'mutate']) for _ in range(n_individuals_to_submit)]
var_ops = [np.random.choice(["crossover","mutate_then_crossover","crossover_then_mutate",'mutate'],p=[self.crossover_probability,self.mutate_then_crossover_probability, self.crossover_then_mutate_probability,self.mutate_probability]) for _ in range(n_individuals_to_submit)]

parents = []
for op in var_ops:
if op == "mutate":
Expand Down

0 comments on commit 2e17842

Please sign in to comment.