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

MAP-Elites policies for allocating rollouts in uncertain domains. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.uncertain._Rollouts
 Dispatch rollouts and resolve them in submission order. More...
class  qdpy.algorithms.uncertain.StandardErrorSamplingDecorator
 Request repeats until coordinate-wise standard errors meet the tolerances. More...
class  qdpy.algorithms.uncertain.UncertainMAPElites
 Coordinate scalar-objective MAP-Elites policies that reevaluate archives. More...
class  qdpy.algorithms.uncertain.ArchiveAudit
 Independent audit results and the corresponding corrected archive. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.uncertain._quality (archive, individual)
 Pick the highest-weighted objective in a scalar-objective archive.
 qdpy.algorithms.uncertain._select_elite (archive)
 Choose a cell uniformly and select its highest-quality member.
 qdpy.algorithms.uncertain._selection_weights (archive, entries)
 Convert quality measurements to nonnegative proportional selection weights.
 qdpy.algorithms.uncertain._select_deep_grid (archive)
 Choose uniformly among occupied cells, then proportionately to fitness.
 qdpy.algorithms.uncertain._cell (archive, individual)
 Report whether a descriptor estimate maps into a configured cell.
 qdpy.algorithms.uncertain._incumbent (archive, cell)
 Select the active incumbent for a local comparison.
 qdpy.algorithms.uncertain._worker (evaluate, individual, seeded)
 Evaluate one worker job and preserve in-place evaluation results.
 qdpy.algorithms.uncertain._measurement_groups (archive, evaluate, *, samples, seed, estimator, representative="best", selector=None, executor=None)
 qdpy.algorithms.uncertain.reevaluate_archive (archive, evaluate, *, samples=32, seed=0, estimator="median", representative="best", selector=None, executor=None)
 Reevaluate one result per occupied cell using fresh, seeded rollouts.

Detailed Description

MAP-Elites policies for allocating rollouts in uncertain domains.

Definition in file uncertain.py.

Function Documentation

◆ _measurement_groups()

qdpy.algorithms.uncertain._measurement_groups ( archive,
evaluate,
* ,
samples,
seed,
estimator,
representative = "best",
selector = None,
executor = None )
protected
Share independent rollout measurements across archive projections.

Definition at line 472 of file uncertain.py.

◆ _select_deep_grid()

qdpy.algorithms.uncertain._select_deep_grid ( archive)
protected

Choose uniformly among occupied cells, then proportionately to fitness.

See also
https://arxiv.org/html/2006.14253

Definition at line 59 of file uncertain.py.

◆ reevaluate_archive()

qdpy.algorithms.uncertain.reevaluate_archive ( archive,
evaluate,
* ,
samples = 32,
seed = 0,
estimator = "median",
representative = "best",
selector = None,
executor = None )

Reevaluate one result per occupied cell using fresh, seeded rollouts.

Parameters
archiveFixed Grid or CVTGrid to audit.
evaluateCallable taking an individual and the independent rollout seed.
samplesNumber of independent rollouts per occupied source cell.
seedBase seed for the audit stream.
estimatorCoordinate-wise mean or median.
representativeBest-per-cell or selector-based measurements.
selectorOptional in-cell selector taking the archive, entries and RNG.
executorOptional QDpy executor.
Returns
ArchiveAudit with independent metrics and rollout counts.
Build a new depth-one archive without changing the input archive.

The selector-based audit draws a member on each rollout. Its aggregate
describes a source cell's deployment policy. The corrected coverage
denominator is the number of cells in the source geometry.

Definition at line 513 of file uncertain.py.