Skip to content

Commit

Permalink
Merge pull request #1315 from perib/early_crash_fix
Browse files Browse the repository at this point in the history
Early crash fix.
  • Loading branch information
jay-m-dev authored Aug 14, 2023
2 parents 6139bf2 + a15c704 commit 06323a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpot/gp_deap.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def varOr(population, toolbox, lambda_, cxpb, mutpb):
ind1, ind2 = pick_two_individuals_eligible_for_crossover(population)
if ind1 is not None:
ind1_cx, _, evaluated_individuals_= toolbox.mate(ind1, ind2)
del ind1.fitness.values
del ind1_cx.fitness.values

if str(ind1_cx) in evaluated_individuals_:
ind1_cx = mutate_random_individual(population, toolbox)
Expand Down

0 comments on commit 06323a1

Please sign in to comment.