QDpy
Loading...
Searching...
No Matches
qdpy.rl.gda_qd.GDAQD Class Reference

Illuminate an imagined archive, then improve a subset using real-data TD3 gradients. More...

Inheritance diagram for qdpy.rl.gda_qd.GDAQD:
qdpy.rl.dynamics_aware.DynamicsAwareQD qdpy.rl.search.NeuralMAPElites

Public Member Functions

 stats (self)
 Return costs for model rollouts, true evaluations, and TD3.
Public Member Functions inherited from qdpy.rl.dynamics_aware.DynamicsAwareQD
 train (self, max_env_steps)
 Spend the environment budget on complete true evaluations and collect transition replay.
Public Member Functions inherited from qdpy.rl.search.NeuralMAPElites
 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 imagined archive, then improve a subset using real-data TD3 gradients.

Adapt Lim, Flageat and Cully's GDA-QD to synchronous Gymnasium rollouts.

Each model cycle starts with a copy of the verified archive. Select
new or improved imagined elites and reserve a fraction for gradients
from a TD3 critic. The gradients use replay from the real environment.
Both branches receive complete real evaluations for archive admission.
The model trains on direct transfers and warm-up data by default.

:param env_factory: Factory for a continuous Gymnasium environment.
:param archive: Empty best-only Grid or CVTGrid.
:param td3: Optional TD3Config for the separate critic replay and targets.
:param gradient_fraction: Target fraction of selected transfers to
    mutate with policy gradients. Zero runs the seeded model-only control.
:param critic_steps: TD3 minibatch updates per ready model cycle.
:param pg_steps: Adam updates per gradient-mutated transfer.
:param pg_learning_rate: Positive learning rate for gradient mutation.
:param exclude_gradient_from_model: Exclude gradient-policy transitions
    from dynamics fitting, as in the paper. The critic sees both sources.
:param kwargs: DynamicsAwareQD settings, including descriptor and model_reward.

Definition at line 34 of file gda_qd.py.

Member Function Documentation

◆ stats()

qdpy.rl.gda_qd.GDAQD.stats ( self)

Return costs for model rollouts, true evaluations, and TD3.

Report cumulative stats and separate replay occupancy.

Reimplemented from qdpy.rl.dynamics_aware.DynamicsAwareQD.

Definition at line 83 of file gda_qd.py.


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