alogos.systems.ge.representation

Representations for GE.

Classes

Genotype

GE genotype.

Individual

GE individual having a GE genotype.

Population

GE population consisting of GE individuals.


Detailed object descriptions

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

Bases: alogos.systems._shared.representation.BaseGenotype

GE genotype.

__init__(self, data)[source]

Create a GE genotype with immutable data.

Parameters:

data (tuple of int, or list of int, or str representation of one of the former options) – The provided data is converted to the first form.

Examples

The argument data could get following values of different types that all lead to the same result:

  • (177, 29, 113, 4, 55, 13, 220)

  • [177, 29, 113, 4, 55, 13, 220]

  • "(177, 29, 113, 4, 55, 13, 220)"

  • "[177, 29, 113, 4, 55, 13, 220]"

Raises:

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

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

Bases: alogos.systems._shared.representation.BaseIndividual

GE individual having a GE genotype.

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

Bases: alogos.systems._shared.representation.BasePopulation

GE population consisting of GE individuals.