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

Public Member Functions

 reset (self)
 merge (self, other)
int nb_samples (self)
Public Member Functions inherited from qdpy.phenotype.Individual
FitnessLike fitness (self)
FeaturesLike features (self)
ScoresDictLike scores (self)
bool dominates (self, Any other, Optional[str] score_name=None)

Detailed Description

Represent one genome evaluated several times.

Fitness and features are independent sample accumulators. The
sampling decorator tracks the total expected observations on each
proposal before reporting aggregated feedback to the base search.

Definition at line 229 of file sampling.py.

Member Function Documentation

◆ merge()

qdpy.algorithms.sampling.SampledIndividual.merge ( self,
other )
Merge another evaluation's fitness and descriptors and add its elapsed time.

Definition at line 251 of file sampling.py.

◆ nb_samples()

int qdpy.algorithms.sampling.SampledIndividual.nb_samples ( self)
Count fitness observations. The scheduling interface uses a minimum count of one.

Definition at line 258 of file sampling.py.

◆ reset()

qdpy.algorithms.sampling.SampledIndividual.reset ( self)
Clear named scores and reset the attached fitness, descriptors, and elapsed time.

Reimplemented from qdpy.phenotype.Individual.

Definition at line 246 of file sampling.py.


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