alogos.systems.pige.representation¶
Representations for piGE.
Classes¶
PiGE genotype. |
|
PiGE individual having a piGE genotype. |
|
PiGE population consisting of piGE individuals. |
Detailed object descriptions¶
- class alogos.systems.pige.representation.Genotype(data)[source]¶
Bases:
alogos.systems._shared.representation.BaseGenotypePiGE genotype.
- __init__(self, data)[source]¶
Create a piGE 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.pige.representation.Individual(genotype=None, phenotype=None, fitness=float('nan'), details=None)[source]¶
Bases:
alogos.systems._shared.representation.BaseIndividualPiGE individual having a piGE genotype.
- class alogos.systems.pige.representation.Population(individuals)[source]¶
Bases:
alogos.systems._shared.representation.BasePopulationPiGE population consisting of piGE individuals.