QDpy
Loading...
Searching...
No Matches
qdpy.rl.adaptive_pga.PGAAURORA Class Reference

Illuminate an unstructured learned descriptor archive with TD3 variation. More...

Inheritance diagram for qdpy.rl.adaptive_pga.PGAAURORA:
qdpy.rl.pga.PGAMAPElites qdpy.rl.search.NeuralMAPElites

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.

Detailed Description

Illuminate an unstructured learned descriptor archive with TD3 variation.

Use PGA proposals alongside periodic AURORA autoencoder fitting.

Completed rollouts provide fitness and a fixed-size trajectory. The
autoencoder learns from the warmup candidates and later from retained
policies. Refits use cached trajectories and rebuild the repertoire.
Incomplete candidates can supply TD3 replay through the ordinary PGA
loop. They do not provide descriptors.

:param env_factory: Callable constructing a Gymnasium Box environment.
:param trajectory: Optional callable (episode) returning a rank-two
    fixed-shape trajectory scaled to [-1, 1]. By default observations
    are flattened, transformed by tanh and padded with the last row.
:param latent_size: Width of the latent descriptors.
:param capacity: Hard maximum number of retained policies.
:param radius: Initial novelty radius.
:param training_period: Completed policies between encoder refits.
:param encoder_epochs: Reconstruction passes per refit.
:param encoder_batch_size: Maximum trajectories in a reconstruction update.
:param size_gain: AURORA proportional size controller gain in [0, 1].
:param gradient: Enable the PGA schedule. False runs the genetic AURORA control.
:param initial_policies: Number of complete random policies for the first fit.
:param seed: Root variation, rollout and encoder seed.
:param kwargs: Other PGA-MAP-Elites policy, replay and evaluation settings.

Definition at line 37 of file adaptive_pga.py.

Member Function Documentation

◆ stats()

qdpy.rl.adaptive_pga.PGAAURORA.stats ( self)
Report environment, TD3 and autoencoder work.

Reimplemented from qdpy.rl.pga.PGAMAPElites.

Definition at line 114 of file adaptive_pga.py.


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