Variation operators#
Variation operators on expressions.
Classical operators (Koza, 1992; Poli, Langdon and McPhee, 2008):
subtree_crossover()– swap random subtrees of two parents; internal nodes are chosen with probability 0.9 (Koza’s bias against leaf crossover);subtree_mutation()– replace a random subtree by a new random tree;point_mutation()– replace nodes by others of the same arity;hoist_mutation()– replace the tree by one of its subtrees (Kinnear, 1994), a strong bloat-reducing move;shrink_mutation()replaces a subtree by a terminal;insert_mutation()– insert a new function above a subtree;constant_mutation()– Gaussian perturbation of the parameters.
Semantic operator: semantic_crossover() is the semantic similarity-based
crossover of Uy et al. (2011): the swapped subtrees must behave similarly, but
not identically, on the training samples.
Every operator returns a new expression and leaves its parents unchanged; size
and depth limits are checked by the caller (within_limits()).
Crossover and mutation operators on expression trees.
Functions#
|
Index of a random node; an internal node with probability |
|
True if the expression respects the depth and size limits. |
|
Child of |
|
Replace a random subtree by a grown tree of depth at most |
|
Replace every node with probability |
|
Replace a random subtree by one of its own subtrees (Kinnear's hoist). |
|
Replace a random internal subtree by a terminal. |
|
Insert a random function above a random subtree (the subtree becomes one argument). |
|
Multiply parameters by \(1+\sigma\epsilon\) and add \(\sigma\epsilon'\), \(\epsilon,\epsilon'\sim N(0,1)\). |
|
Semantic similarity-based crossover (SSC) of Uy et al. (2011). |