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

Combinatorial MAP-Elites with several decoders and adaptive emitters. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.multi_decoder.MultiDecoderResult
 Archive and separate proposal, decoding, and objective measurement budgets. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.multi_decoder.multi_decoder_map_elites (archive, evaluate, *, sample, emitters, decoders, budget, initial_samples=8, rule="round_robin", exploration=1., epsilon=.3, seed=0)
 Generate offspring with round-robin or bandit emitters and decode them on a common grid.

Detailed Description

Combinatorial MAP-Elites with several decoders and adaptive emitters.

See also
https://doi.org/10.1007/978-3-031-30229-9_3

Definition in file multi_decoder.py.

Function Documentation

◆ multi_decoder_map_elites()

qdpy.algorithms.multi_decoder.multi_decoder_map_elites ( archive,
evaluate,
* ,
sample,
emitters,
decoders,
budget,
initial_samples = 8,
rule = "round_robin",
exploration = 1.,
epsilon = .3,
seed = 0 )

Generate offspring with round-robin or bandit emitters and decode them on a common grid.

Parameters
archiveEmpty parentless best-only Grid or CVTGrid.
evaluateCallable (decoded) returning (scalar quality, descriptors), or None to reject.
sampleCallable (rng) returning an undecoded genome.
emittersOrdered callables (parent, rng) returning an undecoded child genome.
decodersOrdered callables (genome) returning a phenotype or None.
budgetHard limit on decoder calls, including failures.
initial_samplesNumber of proposals before selecting an emitter.
ruleSelection rule, "round_robin", "ucb1", or "decaying_epsilon".
explorationNonnegative UCB exploration coefficient.
epsilonInitial exploration probability for decaying epsilon.
seedSeed for parent selection and variation.
Returns
MultiDecoderResult with the native archive and separate counters.
Try each decoder on the emitted genome and reward successful admissions.

Each decode consumes a budget slot, including a refusal to decode.
Rotate decoder order each proposal. Each arm earns the fraction of
attempted decodings that filled or improved a cell. The decoder
index prefixes archived genomes to preserve alternative phenotypes.

Definition at line 46 of file multi_decoder.py.