-
Notifications
You must be signed in to change notification settings - Fork 0
Description
In file gp.py lines 43 and 46 two classes are instantiated with parameters regarding maxDepth and minDepth. The first class is for generating nodes and the other is for performing mutation/crossover operations. The problem is that the depth limits are different from one another. Is there a reason for that?
Here are the pieces of code:
ng = NodeGenerator(terms, 1, 5, 2, 5)
gpo = GPOps(terms, 1, 5, 1, 4)
See that the last two parameters (maxDepth, minDepth) are different. And then you send these objects to the Population:
pop = Population(popSize, ng, reproducePercent, mutatePercent, crossOverPercent, gpo, sp.parse_sensor(modelSensor), traces, self.ms)
Which means that you perform mutation/crossover operations under different limits of maxDepth and minDepth than the limits you use for generating new nodes in the population. Is there an implementation reason for that?