alogos.systems.dsge.representation
¶
Representations for DSGE.
Classes¶
DSGE genotype. |
|
DSGE individual having a DSGE genotype. |
|
DSGE population consisting of DSGE individuals. |
Detailed object descriptions¶
- class alogos.systems.dsge.representation.Genotype(data)[source]¶
Bases:
alogos.systems._shared.representation.BaseGenotype
DSGE genotype.
- __init__(self, data)[source]¶
Create a DSGE genotype with immutable data.
- Parameters:
data (
tuple
oftuple
objects ofint
, orlist
oflist
objects ofint
, orstr
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))
Note that a tuple with just one member also requires a comma inside the parentheses to be recognized as tuple.
[[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.dsge.representation.Individual(genotype=None, phenotype=None, fitness=float('nan'), details=None)[source]¶
Bases:
alogos.systems._shared.representation.BaseIndividual
DSGE individual having a DSGE genotype.
- class alogos.systems.dsge.representation.Population(individuals)[source]¶
Bases:
alogos.systems._shared.representation.BasePopulation
DSGE population consisting of DSGE individuals.