alogos.systems.cfggpst.representation

Representations for CFG-GP-ST.

Classes

Genotype

CFG-GP-ST genotype.

Individual

CFG-GP-ST individual having a CFG-GP-ST genotype.

Population

CFG-GP-ST population consisting of CFG-GP-ST individuals.


Detailed object descriptions

class alogos.systems.cfggpst.representation.Genotype(data)[source]

Bases: alogos.systems._shared.representation.BaseGenotype

CFG-GP-ST genotype.

__init__(self, data)[source]

Create a CFG-GP-ST genotype with immutable data.

Parameters:

data (DerivationTree, or tuple representation of it, or str representation of it) – If the provided data is of type tuple or str it is automatically converted to a tree.

Raises:

GenotypeError – If the provided data can not be converted to the desired form.

class alogos.systems.cfggpst.representation.Individual(genotype=None, phenotype=None, fitness=float('nan'), details=None)[source]

Bases: alogos.systems._shared.representation.BaseIndividual

CFG-GP-ST individual having a CFG-GP-ST genotype.

class alogos.systems.cfggpst.representation.Population(individuals)[source]

Bases: alogos.systems._shared.representation.BasePopulation

CFG-GP-ST population consisting of CFG-GP-ST individuals.