HyperGP.operators.mutation.RandTrMut

HyperGP.operators.mutation.RandTrMut#

class RandTrMut[source]#

Perform the subtree mutation operation on the program.

Subtree mutation selects a random subtree from the embedded program to be replaced. A donor subtree is generated at random and this is inserted into the original parent to form an offspring. This implementation uses the “headless chicken” method where the donor subtree is grown using the initialization methods and a subtree of it is selected to be donated to the parent.

__init__()#

Methods

__init__()#
__new__(**kwargs)#