|
QDpy
|
Illuminate a Box-control archive using TD3 and the PGA-MAP-Elites schedule. More...
Public Member Functions | |
| stats (self) | |
| Public Member Functions inherited from qdpy.rl.search.NeuralMAPElites | |
| train (self, max_env_steps, *, evaluation_batch_size=1, budget_aware=False) | |
| Spend an additional hard step budget on policy search. | |
| policy_for (self, individual, *, device=None, seed=0) | |
| Rebuild an independent inference actor from an archived genome. | |
| best_policy (self, *, device=None, seed=0) | |
| Rebuild the best archived actor for inference or export. | |
Illuminate a Box-control archive using TD3 and the PGA-MAP-Elites schedule.
Combine an evaluated greedy actor, genetic offspring, and gradient offspring.
Each post-warmup generation trains twin critics and a single greedy
actor from past rollout transitions. The first slot evaluates a copy
of the greedy actor. Genetic and gradient variation fill the other
slots using elites from the archive as it stood at the start of the
generation. A gradient offspring uses its own Adam optimizer and
uses Q1 to maximize predicted return on states sampled from replay.
Between training calls the search retains replay and queued proposals.
A partial evaluation contributes to replay but cannot enter the archive.
:param env_factory: Callable returning an environment with a finite
floating-point Box action space.
:param archive: Best-only Grid or CVTGrid as in :class:`NeuralMAPElites`.
:param td3: Replay and learner settings as a :class:`TD3Config`.
:param batch_size: Number of candidates per post-warmup generation.
:param genetic_offspring: Iso+LineDD slots per generation. Defaults to
half the batch rounded down. One slot is reserved for the greedy actor.
:param critic_steps: Number of TD3 critic minibatch updates per generation.
:param pg_steps: Number of Adam updates for each gradient offspring.
:param pg_learning_rate: Adam learning rate for gradient offspring.
:param kwargs: Evaluation, policy, and variation options for
:class:`NeuralMAPElites`. Gradients always use environment rewards.
| qdpy.rl.pga.PGAMAPElites.stats | ( | self | ) |
Return cumulative costs, generation operator counts, and replay size.
Reimplemented from qdpy.rl.search.NeuralMAPElites.
Reimplemented in qdpy.rl.adaptive_pga.AdaHOME, and qdpy.rl.adaptive_pga.PGAAURORA.