alogos.systems._shared.mutation

Shared mutation functions for several systems.

Functions

flat_int_replacement_by_prob(grammar, gt, parameters, default_parameters, _representation)

Generate a new genotype by replacing int codons by chance.

flat_int_replacement_by_count(grammar, gt, parameters, default_parameters, _representation)

Generate a new genotype by replacing a number of int codons.


Detailed object descriptions

alogos.systems._shared.mutation.flat_int_replacement_by_prob(grammar, gt, parameters, default_parameters, _representation)[source]

Generate a new genotype by replacing int codons by chance.

alogos.systems._shared.mutation.flat_int_replacement_by_count(grammar, gt, parameters, default_parameters, _representation)[source]

Generate a new genotype by replacing a number of int codons.