|
QDpy
|
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) |
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.
| 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.
| 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.
| 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.
| 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.
| 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.