QDpy
Loading...
Searching...
No Matches
qdpy.rl.ebc.GAILEBC Class Reference

Recover a reward from demonstrations and add an archive-occupancy PPO bonus. More...

Inheritance diagram for qdpy.rl.ebc.GAILEBC:
qdpy.rl.ppga.PPGA qdpy.rl.search.NeuralMAPElites

Additional Inherited Members

Public Member Functions inherited from qdpy.rl.ppga.PPGA
 stats (self)
 generation_step_limit (self)
 train (self, max_env_steps)
 Run complete PPGA generations within an additional environment step limit.
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

Recover a reward from demonstrations and add an archive-occupancy PPO bonus.

GAIL with Extrinsic Behavioral Curiosity from Wan et al. (ICML 2025).

The discriminator estimates whether a state-action pair came from an
expert. PPO uses softplus of its logit as the imitation reward. If the
completed episode's mean measure falls in a currently empty cell, each
transition in the episode earns the same curiosity bonus. The resulting
PPGA archive contains policies ranked by the imitation reward at the
time of evaluation. Use independent environment evaluation for stable
external comparisons when the discriminator is still changing.

:param env_factory: Factory for a continuous-control Gymnasium environment.
:param archive: Empty best-only reporting Grid or CVTGrid.
:param demonstrations: Pair of arrays (observations, actions) with one
    row per expert transition. Use the environment's shapes and units.
:param curiosity_weight: Nonnegative per-step empty-cell bonus. Zero gives GAIL.
:param discriminator: Optional PolicyConfig for the discriminator MLP.
:param discriminator_updates: Number of Adam updates after each PPGA generation.
:param discriminator_batch_size: Number of examples of each class per update.
:param discriminator_learning_rate: Positive Adam learning rate.
:param replay_capacity: Maximum number of recent agent transitions retained.
:param kwargs: Continuous PPGA settings, including timestep measure and PPO.
    Set PPO rollout_steps to at least max_episode_steps.

Definition at line 29 of file ebc.py.


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