Commit 2ffa0431 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg

Change tree depth

parent a27f5f98
......@@ -104,7 +104,7 @@ creator.create("Individual", gp.PrimitiveTree, fitness=creator.FitnessMax)
toolbox = base.Toolbox()
# Attribute generator
toolbox.register("expr_init", gp.genFull, pset=pset, min_=1, max_=5)
toolbox.register("expr_init", gp.genFull, pset=pset, min_=2, max_=10)
# Structure initializers
toolbox.register("individual", tools.initIterate, creator.Individual,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment