operators

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PointMutation

func PointMutation(pset tree.PrimitiveSet) engine.MutationFunc[tree.Tree]

PointMutation returns a mutation function that randomly changes the function or terminal value of a node.

func SubtreeCrossover

func SubtreeCrossover() engine.CrossoverFunc[tree.Tree]

SubtreeCrossover returns a crossover function for GP trees. It selects a random node in both parents and swaps the subtrees rooted at those nodes.

func SubtreeMutation

func SubtreeMutation(maxDepth int, pset tree.PrimitiveSet) engine.MutationFunc[tree.Tree]

SubtreeMutation returns a mutation function that replaces a random node with a newly generated subtree.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL