Skip to content

Commit 06323a1

Browse files
authored
Merge pull request #1315 from perib/early_crash_fix
Early crash fix.
2 parents 6139bf2 + a15c704 commit 06323a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tpot/gp_deap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def varOr(population, toolbox, lambda_, cxpb, mutpb):
132132
ind1, ind2 = pick_two_individuals_eligible_for_crossover(population)
133133
if ind1 is not None:
134134
ind1_cx, _, evaluated_individuals_= toolbox.mate(ind1, ind2)
135-
del ind1.fitness.values
135+
del ind1_cx.fitness.values
136136

137137
if str(ind1_cx) in evaluated_individuals_:
138138
ind1_cx = mutate_random_individual(population, toolbox)

0 commit comments

Comments
 (0)