QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.multi_encoding.MultiEncodingMAPElites Class Reference

Illuminate a shared phenotype space with several genotype encodings. More...

Public Member Functions

 __init__ (self, archive, encodings, *, initial_samples=8, seed=0)
 stats (self)
 Cumulative counters from all runs.
 decode (self, elite)
 Decode an individual from this archive, without recording an objective call.
 run (self, evaluate, budget)
 Spend a budget of proposal attempts and return cumulative counters.

Detailed Description

Illuminate a shared phenotype space with several genotype encodings.

Sample each encoding evenly, then mutate uniformly drawn archive elites.

Archived genotypes start with the zero-based encoding index, followed by
the encoding's genome. All encodings compete in the same descriptor cells.

Definition at line 43 of file multi_encoding.py.

Constructor & Destructor Documentation

◆ __init__()

qdpy.algorithms.multi_encoding.MultiEncodingMAPElites.__init__ ( self,
archive,
encodings,
* ,
initial_samples = 8,
seed = 0 )
Parameters
archiveEmpty parentless, scalar, best-only Grid or CVTGrid.
encodingsOrdered GenomeEncoding objects with unique names.
initial_samplesNumber of initial proposals per encoding.
seedSeed for sampling, parent selection, and mutation.

Definition at line 54 of file multi_encoding.py.

Member Function Documentation

◆ run()

qdpy.algorithms.multi_encoding.MultiEncodingMAPElites.run ( self,
evaluate,
budget )

Spend a budget of proposal attempts and return cumulative counters.

Parameters
evaluateCallable (phenotype) returning (scalar fitness, descriptors) or None.
budgetNumber of proposals, including unsuccessful decodes and measurements.

Definition at line 91 of file multi_encoding.py.


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