easyiec.core.Individual#
- class easyiec.core.Individual(genome, id=-1, generation=0, parents=(), origin='init', params=<factory>, meta=<factory>)[source]#
Bases:
objectA candidate solution shown to an evaluator.
- Attributes:
- genome
Any Natural-unit genome (
numpy.ndarrayfor real-coded problems, a string or a list for text problems).- id
int Identifier unique within a session.
- generation
int Iteration of the strategy that created the individual.
- parents
tupleofint Identifiers of the parents (empty for the initial population).
- origin
str Variation operator that produced it (
"init","crossover","mutation","edit","llm","pso", …).- params
dict Strategy parameters carried by the individual (e.g. ES step sizes).
- meta
dict Free annotations: oracle utility, phenotype features, cached images.
- genome