kgp.tree / TreeGenerationMode

TreeGenerationMode

enum class TreeGenerationMode

Represents the different types of tree generation methods.

Grow mode will generate trees with nodes chosen randomly from the union of the function and terminal sets, allowing trees that are smaller than the max depth to be created. This method generally produces asymmetric trees.

Full mode will generates tree with nodes chosen from the function set, until the maximum depth is reached when it will start choosing from the terminal set. This tends to grow "bushy" symmetrical trees.

HalfAndHalf mode will use a 50/50 combination of the full and grow modes, meaning the trees in the initial population will have a mix of shapes.

Enum Values

Grow
Full
HalfAndHalf