QDpy
Loading...
Searching...
No Matches
qdpy.phenotype.Individual Class Reference
Inheritance diagram for qdpy.phenotype.Individual:
qdpy.phenotype.IndividualLike qdpy.algorithms.qed._EnvironmentTrial qdpy.algorithms.sampling.SampledIndividual qdpy.phenotype._CellIndividual

Public Member Functions

FitnessLike fitness (self)
FeaturesLike features (self)
ScoresDictLike scores (self)
bool dominates (self, Any other, Optional[str] score_name=None)
None reset (self)

Detailed Description

Store a mutable genome with separate evaluation results.

The list contents are the genome. Fitness, descriptors, named
scores, elapsed evaluation time, and the name are stored separately.
Genome equality is independent of those measurements.

Keep the genome unchanged while the candidate is in an archive.
Use a copy for mutation or remove the candidate before editing it.
Updating the descriptor of a stored individual does not relocate
its grid cell automatically.

Definition at line 459 of file phenotype.py.

Member Function Documentation

◆ dominates()

bool qdpy.phenotype.Individual.dominates ( self,
Any other,
Optional[str] score_name = None )
Compare fitness or the specified named score by dominance.

Without a score name, compare the attached fitness objects.
With a name, both candidates must supply a score with a dominance
operation at that key.

Reimplemented from qdpy.phenotype.IndividualLike.

Definition at line 525 of file phenotype.py.

◆ features()

FeaturesLike qdpy.phenotype.Individual.features ( self)
Descriptor object attached to this candidate.

Reimplemented from qdpy.phenotype.IndividualLike.

Definition at line 505 of file phenotype.py.

◆ fitness()

FitnessLike qdpy.phenotype.Individual.fitness ( self)
Fitness object attached to this candidate.

Reimplemented from qdpy.phenotype.IndividualLike.

Definition at line 495 of file phenotype.py.

◆ reset()

None qdpy.phenotype.Individual.reset ( self)
Clear named scores and reset the attached fitness, descriptors, and elapsed time.

Reimplemented from qdpy.phenotype.IndividualLike.

Reimplemented in qdpy.algorithms.sampling.SampledIndividual.

Definition at line 537 of file phenotype.py.

◆ scores()

ScoresDictLike qdpy.phenotype.Individual.scores ( self)
Named measurements attached to this candidate.

Reimplemented from qdpy.phenotype.IndividualLike.

Definition at line 515 of file phenotype.py.


The documentation for this class was generated from the following file: