alogos.systems.ge.representation¶
Representations for GE.
Classes¶
GE genotype. |
|
GE individual having a GE genotype. |
|
GE population consisting of GE individuals. |
Detailed object descriptions¶
- class alogos.systems.ge.representation.Genotype(data)[source]¶
Bases:
alogos.systems._shared.representation.BaseGenotypeGE genotype.
- __init__(self, data)[source]¶
Create a GE genotype with immutable data.
- Parameters:
data (
tupleofint, orlistofint, orstrrepresentation of one of the former options) – The provided data is converted to the first form.
Examples
The argument
datacould 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.BaseIndividualGE individual having a GE genotype.
- class alogos.systems.ge.representation.Population(individuals)[source]¶
Bases:
alogos.systems._shared.representation.BasePopulationGE population consisting of GE individuals.