|
QDpy
|
Optimize a feature map with an outer ES and a population of inner MAP-Elites runs. More...
Public Member Functions | |
| result (self) | |
| run (self, evaluate, meta_fitness, *, generations=1) | |
| Spend complete outer generations and return the best measured archive. | |
Optimize a feature map with an outer ES and a population of inner MAP-Elites runs.
QD Meta-Evolution following Bossens and Tarapore. Each generation samples a population of linear feature maps. It rebuilds a best-only grid for each map from the same shared database snapshot and runs a fixed number of MAP-Elites proposals. Newly evaluated genomes join the database for the next generation. Meta fitness ranks the maps for a limited-memory evolution strategy. :param dimension: Length of the real-valued genome. :param base_domain: Finite bounds for each measured base feature. :param shape: Target grid shape, with one output of the projection per axis. :param ind_domain: Common lower and upper genome bounds. :param maximize: Whether greater inner fitness should be retained. :param initial_samples: Number of real evaluations for initial shared records. :param inner_evaluations: Number of fresh attempts per projection and generation. :param population_size: Number of feature maps per outer generation. :param database_capacity: Capacity of the shared FIFO measurement database. :param sigma0: Initial step size for the outer limited-memory ES. :param iso_sigma: Inner isotropic mutation scale. :param line_sigma: Inner directional mutation scale. :param seed: Seed for the database initialization, inner searches and outer ES.
Definition at line 79 of file qd_meta.py.
| qdpy.algorithms.qd_meta.QDMeta.result | ( | self | ) |
Return the best learned archive and cumulative cost counters.
Definition at line 136 of file qd_meta.py.
| qdpy.algorithms.qd_meta.QDMeta.run | ( | self, | |
| evaluate, | |||
| meta_fitness, | |||
| * | , | ||
| generations = 1 ) |
Spend complete outer generations and return the best measured archive.
Run fresh inner searches. Both callbacks may return None for a failed measurement. evaluate takes a genome and returns (scalar fitness, base_features). meta_fitness takes a completed Grid and returns a scalar to maximize. The latter should treat the supplied Grid as read-only. Its own simulator interactions can be tracked in the callback.
Definition at line 190 of file qd_meta.py.