Trajectory-based descriptors and scheduled CMA-MAE rebuilds for AutoQD.
More...
Go to the source code of this file.
|
| | qdpy.algorithms.autoqd._rebuild (archive, projector, embeddings) |
| | qdpy.algorithms.autoqd.autoqd_search (evaluate, archive, *, budget, x0, sigma0, threshold_min, trajectory_width, batch_size=16, ind_domain=None, learning_rate=0.01, embedding_dim=128, bandwidth=1., gamma=0.99, update_interval=10, seed=0) |
| | Run AutoQD with numeric trajectories and the optional CMA-MAE backend.
|
Trajectory-based descriptors and scheduled CMA-MAE rebuilds for AutoQD.
Definition in file autoqd.py.
◆ _rebuild()
| qdpy.algorithms.autoqd._rebuild |
( |
| archive, |
|
|
| projector, |
|
|
| embeddings ) |
|
protected |
Prepare a replacement grid without mutating the previous archive or its candidates.
Definition at line 155 of file autoqd.py.
◆ autoqd_search()
| qdpy.algorithms.autoqd.autoqd_search |
( |
| evaluate, |
|
|
| archive, |
|
|
* | , |
|
|
| budget, |
|
|
| x0, |
|
|
| sigma0, |
|
|
| threshold_min, |
|
|
| trajectory_width, |
|
|
| batch_size = 16, |
|
|
| ind_domain = None, |
|
|
| learning_rate = 0.01, |
|
|
| embedding_dim = 128, |
|
|
| bandwidth = 1., |
|
|
| gamma = 0.99, |
|
|
| update_interval = 10, |
|
|
| seed = 0 ) |
Run AutoQD with numeric trajectories and the optional CMA-MAE backend.
Search for high-performing policies with trajectory-derived descriptors.
:param evaluate: Callable taking a numeric genome tuple and a per-attempt
seed. Return (fitness, trajectories), with one or more arrays of
state-action rows. Fitness is maximized.
:param archive: Empty parentless one-elite Grid with feature bounds
[-1.2, 1.2] on every axis and a domain for one maximizing objective.
:param budget: Hard budget in attempted candidate calls.
:param x0: Initial CMA center with at least two real coordinates.
:param sigma0: Initial step size for CMA-MAE and its restarts.
:param threshold_min: Initial CMA-MAE threshold in raw quality units.
:param trajectory_width: Number of state-action coordinates per step.
:param batch_size: CMA population size. The last batch may be partial.
:param ind_domain: Optional common lower and upper genome bounds.
:param learning_rate: CMA-MAE threshold update rate.
:param embedding_dim: Number of random Fourier features.
:param bandwidth: Gaussian kernel width in the caller's fixed input units.
:param gamma: Discount applied within trajectories.
:param update_interval: Full generations between descriptor updates. None
keeps the initial projection for a comparison at fixed coordinates.
:param seed: Root seed for independent descriptor, evaluator, and emitter streams.
:returns: AutoQDResult with the last grid, usable projector, and counts.
Definition at line 171 of file autoqd.py.