geneticengine.algorithms.gp.operators.umad
Variable-length mutation operators for linear genomes.
UMAD is Uniform Mutation by Addition and Deletion. SARMS is its self-adaptive-rate variant: the mutation rate is carried by the individual and perturbed before it is used to mutate the genome.
Attributes
Functions
|
Apply size-neutral Uniform Mutation by Addition and Deletion. |
|
Mutate a genome and its rate using a log-normal self-adaptation step. |
|
Generate a standard normal using only the RandomSource interface. |
Module Contents
- geneticengine.algorithms.gp.operators.umad.T
- geneticengine.algorithms.gp.operators.umad.umad_mutate(genome, random, gene_factory, rate=0.1)
Apply size-neutral Uniform Mutation by Addition and Deletion.
For each original gene,
floor(rate)genes are inserted plus one more with probability equal to the fractional part. Every gene in the augmented genome is then deleted independently with probabilityrate / (1 + rate), which preserves the expected genome size.
- geneticengine.algorithms.gp.operators.umad.sarms_mutate(genome, random, gene_factory, rate=0.1, meta_rate=0.1, minimum_rate=1e-06, maximum_rate=10.0)
Mutate a genome and its rate using a log-normal self-adaptation step.
- geneticengine.algorithms.gp.operators.umad._standard_normal(random)
Generate a standard normal using only the RandomSource interface.
- Parameters:
- Return type:
float