Indeed I also did set gp.koza.half.max-depth = 5 (and min-depth = 2) .
I just tried it again and it still grows trees as big as if no size
limit was given.
Sean Luke a écrit :
> maxdepth are used to control the depth of trees that crossover and
> mutation can wind up with. If you're trying to control the size of
> initial trees, or of the subtree generated during mutation, you need
> to change your tree-builder's depth parameter. I think the default
> uses ramped half-and-half as so:
> gp.koza.half.min-depth = 2
> gp.koza.half.max-depth = 6
> On Oct 26, 2006, at 12:19 PM, Denis Robilliard wrote:
>> When trying to obtain short trees, I first copied the two following
>> lines from the koza.params file:
>> # I want very short trees
>> But the trees were as deep as before, until I replaced these lines
>> with the following:
>> pop.subpop.0.species.pipe.source.0.maxdepth = 5
>> pop.subpop.0.species.pipe.source.1.maxdepth = 5
>> Are the gp.koza.crossover/mutate.maxdepth params somehow discontinued ?
Laboratoire d'Informatique du Littoral
50 rue Ferdinand Buisson