Copyright(c) Fabricio Olivetti de Franca 2022
LicenseGPL-3
Maintainerfabricio.olivetti@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred

MachineLearning.TIR.Mutation

Description

Mutation operators.

Synopsis

Documentation

toss :: Rnd Bool Source #

randomChoice :: Rnd a -> Rnd a -> Rnd a Source #

trd :: Pi -> [(Int, Int)] Source #

multiMut :: MutationCfg -> Individual -> Rnd Individual Source #

Multi-mutation, it applies one of the following mutations at random:

  • insertNode
  • removeNode
  • changeVar
  • changeExponent
  • changeFun

insertNode :: MutationCfg -> TIR -> Rnd TIR Source #

inserts a random node

removeNode :: MutationCfg -> TIR -> Rnd TIR Source #

removes a random node

changeVar :: MutationCfg -> TIR -> Rnd TIR Source #

changes the index of a random variable node.

changeExponent :: MutationCfg -> TIR -> Rnd TIR Source #

changes a random exponent.

changeFun :: MutationCfg -> TIR -> Rnd TIR Source #

changes a random transformation function.

replaceSubTree :: MutationCfg -> TIR -> Rnd TIR Source #

replaces a subtree at random (not yet implemented).