Download GPLAB A Genetic Programming Toolbox for MATLAB
Transcript
operator, because they will be calculated and stored as needed by other procedures. xsites is the exception - as a merely informative field, that may contain information concerning the nodes where the parent trees were split to create the child tree, if left empty it will remain so, as no other other function in the current version of GPLAB uses it. 3.5 Validating new individuals filters,fixedlevel,dynamiclevel,depthnodes After a new individual is produced by any of the genetic operators, it must be validated in terms of depth/size before being considered as a candidate for the new population. Several validation functions, or filters, are provided in GPLAB, and others may be built and integrated as plug and play functions (see Sect. 2.4). The filters parameter is simply a list of those functions, by the order in which they should be applied. It should not, however, be set by the user, but instead be automatically set, in the beginning of the run, depending on the parameters fixedlevel, dynamiclevel and depthnodes. Bellow is a list of available filter functions along with the description of their purpose (see Sect. 3.2 for more details): • ’strictdepth’ - this filter rejects an individual that is deeper than the strict maximum allowed depth; does nothing otherwise. • ’strictnodes’ - this filter rejects an individual that is bigger (contains more nodes) than the strict maximum allowed size; does nothing otherwise. • ’dyndepth’ - this filter measures the fitness of an individual that is deeper than the dynamic maximum allowed depth: if the individual is better than the best so far, the dynamic depth is increased and the new individual is accepted; otherwise it is rejected. The filter does nothing if the individual is no deeper than the limit. • ’dynnodes’ - the same as the previous one, but considering size (number of nodes) instead of depth. • ’heavydyndepth’ - this filter measures the fitness of an individual and checks its depth. If it is deeper than the dynamic maximum allowed depth: if the individual is better than the best so far, or if it is no deeper than the deepest of its parents, the filter increases the dynamic depth if needed and accepts the individual, otherwise rejects it. If the individual is less deep than the dynamic maximum allowed depth: if it is the better than the best so far, the filter accepts it and lowers the dynamic depth, and does nothing otherwise. • ’heavydynnodes’ - the same as the previous one, but considering size (number of nodes) instead of depth. 24