QDpy
Loading...
Searching...
No Matches
sampling.py File Reference

Sampled phenotype types and resampling policies for noisy evaluators. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.sampling.SampleAveragingStrategy
class  qdpy.algorithms.sampling.ExplicitSampleAveragingStrategy
class  qdpy.algorithms.sampling.SampledFitness
class  qdpy.algorithms.sampling.SampledFeatures
class  qdpy.algorithms.sampling.SampledScores
 Legacy named score mapping with a separate history of sample vectors. More...
class  qdpy.algorithms.sampling.SampledIndividual
class  qdpy.algorithms.sampling.GenSampledIndividuals
class  qdpy.algorithms.sampling._Observation
 One successful rollout with paired objective, descriptor and named measurements. More...
class  qdpy.algorithms.sampling._SampleRequest
 Track one pending offspring or incumbent and its requested rollout slots. More...
class  qdpy.algorithms.sampling.SamplingDecorator
 Wrap an optimiser to aggregate one or more rollouts per proposal. More...
class  qdpy.algorithms.sampling.FixedSamplingDecorator
 Allocate a fixed positive rollout count to each new proposal. More...
class  qdpy.algorithms.sampling.TimeBasedSamplingDecorator
 Increase the rollout target with the fraction of budget consumed. More...
class  qdpy.algorithms.sampling.AdaptiveSamplingDecorator
 Match a promising challenger's sample count and resample losing incumbents. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.sampling._observe (archive, individual, fitness=None, features=None, scores=None, elapsed=None)
 Extract one raw rollout using the archive's configured score names.
 qdpy.algorithms.sampling._observe_result (archive, candidate, result, elapsed=0.)
 Interpret an ordinary QDpy evaluator result.
 qdpy.algorithms.sampling._rollout_seed (seed, stream, index)
 Derive a repeatable seed in a separate search or audit stream.
 qdpy.algorithms.sampling._fresh (individual)
 Copy a proposal for evaluation without carrying its old measurements.
 qdpy.algorithms.sampling._history (archive, individual)
 Use retained rollout pairs or reconstruct the history of an older sampled individual.
 qdpy.algorithms.sampling._aggregate (archive, individual, observations, estimator=None)
 Install aggregated measurements and retain their complete paired history.
 qdpy.algorithms.sampling._valid_observation (observation, objectives, descriptor_count)
 Validate a rollout before adding it to an aggregate.
 qdpy.algorithms.sampling._stage_archive (archive)
 Copy archive bookkeeping while preserving candidate and parent identity.
 qdpy.algorithms.sampling._replace_observation (archive, original, revised)
 Readmit a revised incumbent without exposing intermediate archive states.

Detailed Description

Sampled phenotype types and resampling policies for noisy evaluators.

Definition in file sampling.py.

Function Documentation

◆ _aggregate()

qdpy.algorithms.sampling._aggregate ( archive,
individual,
observations,
estimator = None )
protected

Install aggregated measurements and retain their complete paired history.

Numeric named scores with one common shape are reduced over observations that supply them. Other payloads retain the last supplied value.

Definition at line 342 of file sampling.py.

◆ _replace_observation()

qdpy.algorithms.sampling._replace_observation ( archive,
original,
revised )
protected

Readmit a revised incumbent without exposing intermediate archive states.

A valid move that loses to the destination cell's elite removes the old placement. Validation or parent admission errors keep it intact.

Definition at line 401 of file sampling.py.