|
QDpy
|
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. | |
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.
| qdpy.algorithms.multi_encoding.MultiEncodingMAPElites.__init__ | ( | self, | |
| archive, | |||
| encodings, | |||
| * | , | ||
| initial_samples = 8, | |||
| seed = 0 ) |
| archive | Empty parentless, scalar, best-only Grid or CVTGrid. |
| encodings | Ordered GenomeEncoding objects with unique names. |
| initial_samples | Number of initial proposals per encoding. |
| seed | Seed for sampling, parent selection, and mutation. |
Definition at line 54 of file multi_encoding.py.
| qdpy.algorithms.multi_encoding.MultiEncodingMAPElites.run | ( | self, | |
| evaluate, | |||
| budget ) |
Spend a budget of proposal attempts and return cumulative counters.
| evaluate | Callable (phenotype) returning (scalar fitness, descriptors) or None. |
| budget | Number of proposals, including unsuccessful decodes and measurements. |
Definition at line 91 of file multi_encoding.py.