pg.hyper.Evolvable¶
Accessible via pg.hyper.Evolvable.
- class Evolvable(name=None, hints=None, initial_value=MISSING_VALUE, node_transform=MISSING_VALUE, weights=None)[source]¶
Bases:
pg.hyper.CustomHyperHyper primitive for evolving an arbitrary symbolic object.
Methods:
custom_decode(dna)Decode a DNA whose value is a string of user-defined genome.
custom_encode(value)Encode value to user defined genome.
Returns the first DNA of current sub-space.
mutate(value[, random_generator])Returns the next value for a symbolic value.
mutation_points_and_weights(value)Returns mutation points with weights for a symbolic tree.
random_dna([random_generator, previous_dna])Generates a random DNA.
- custom_decode(dna)[source]¶
Decode a DNA whose value is a string of user-defined genome.
- Return type:
- mutate(value, random_generator=None)[source]¶
Returns the next value for a symbolic value.
- Return type: