QDpy
Loading...
Searching...
No Matches
qdpy.rl.wqdil.WQDIL Class Reference

Learn a continuous policy repertoire using demonstrations and step visit counts. More...

Inheritance diagram for qdpy.rl.wqdil.WQDIL:
qdpy.rl.ppga.PPGA qdpy.rl.search.NeuralMAPElites

Public Member Functions

 stats (self)
 Return cumulative optimizer, generation, and timestep-visit counts.
Public Member Functions inherited from qdpy.rl.ppga.PPGA
 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

Learn a continuous policy repertoire using demonstrations and step visit counts.

Measure-conditioned WAE-WGAIL with Single-Step Archive Exploration.

Reconstruct state-action-measure triples and align their expert and
policy latent distributions through a regularized Wasserstein critic.
PPO uses the critic score plus a visit-frequency bonus. Candidate
scoring uses a frozen count snapshot, so evaluating one candidate
does not change the bonus of the next. Each generation trains its
reward model on the latest search-policy walk and the demonstrations.

:param env_factory: Continuous-control Gymnasium environment factory.
:param archive: Empty scalar Grid or CVTGrid for episodic descriptors.
:param demonstrations: Tuple (observations, actions, measures) with one
    row per expert transition. Use physical units and the training measure.
:param visit_shape: Bin count for each timestep measure, defaulting to 10 each.
:param visit_domain: Finite bounds for timestep measures, defaulting to the
    archive feature domain. Visits outside these bounds earn zero bonus.
:param bonus_weight: Nonnegative multiplier for the single-step bonus.
:param reward_model: Optional PolicyConfig for the encoder, decoder, and critic.
:param latent_size: Number of latent coordinates.
:param reward_updates: Paired critic and autoencoder updates per generation.
:param reward_batch_size: Minibatch size for each of the two transition sources.
:param reward_learning_rate: Adam learning rate for both reward-model optimizers.
:param wasserstein_weight: Positive weight of the latent matching terms.
:param gradient_penalty: Nonnegative coefficient of the latent gradient penalty.
:param kwargs: PPGA settings, including the measure callback and PPO configuration.

Definition at line 104 of file wqdil.py.

Member Function Documentation

◆ stats()

qdpy.rl.wqdil.WQDIL.stats ( self)

Return cumulative optimizer, generation, and timestep-visit counts.

Report visits to the timestep grid separately from policy evaluations.

Reimplemented from qdpy.rl.ppga.PPGA.

Definition at line 172 of file wqdil.py.


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