These are chat archives for DEAP/deap
Quick question on using
toolbox.decorate() to prevent gp tree's from exceeding a depth of 90, and causing a crash.
Let's say that the only operators I am using to change the trees are
mutate. Would the following two lines be enough to always keep my trees small enough?
toolbox.decorate("mate", gp.staticLimit(key=operator.attrgetter("height"), max_value=89)) toolbox.decorate("mutate", gp.staticLimit(key=operator.attrgetter("height"), max_value=89))
or am I not understanding things correctly?
max_valueto 17 or 89 or any other number.
max_valuedepth, the parent or pre-mutated individual is returned.
Deap's implementation of the tournament selection, it's possible that the same individual is selected multiple times in the produced population, right?