QDpy
Loading...
Searching...
No Matches
qdpy.rl.diveoff.DiveOff Class Reference

Discover useful latent skills by alternating offline critic, actor, and representation updates. More...

Public Member Functions

 stats (self)
 policy (self, *, device=None, seed=0)
 Copy an independently usable conditioned actor.
 train (self, updates)
 Complete the configured VAE warm-up and run additional critic iterations.

Detailed Description

Discover useful latent skills by alternating offline critic, actor, and representation updates.

Learn several ways to solve a single continuous-control task from a static log.

Pretrain a Gaussian VAE on state-action pairs. Train twin critics
with a shared skill code on both sides of each Bellman update.
Alternate advantage-weighted actor likelihood with a posterior
update and advantage-weighted VAE training. Mutual information
encourages recoverable skills from sampled policy actions.

:param observation_space: Fixed numeric Gymnasium Box.
:param action_space: Bounded floating-point Gymnasium Box.
:param observations: State array with one row per transition.
:param actions: Logged physical actions in the same row order.
:param rewards: One finite task reward per transition.
:param next_observations: Actual successor states, before any reset.
:param terminated: One Boolean per transition. Time limits can bootstrap.
:param config: DiveOffConfig for offline training settings.
:param policy: PolicyConfig for the latent-conditioned actor.
:param seed: Seed for networks and minibatch or latent draws.
:param device: Torch device. CPU is the default.

Definition at line 192 of file diveoff.py.

Member Function Documentation

◆ policy()

qdpy.rl.diveoff.DiveOff.policy ( self,
* ,
device = None,
seed = 0 )

Copy an independently usable conditioned actor.

Return an inference actor that can be exported without the learner.

Definition at line 249 of file diveoff.py.

◆ stats()

qdpy.rl.diveoff.DiveOff.stats ( self)
Return offline training and log counts.

Definition at line 244 of file diveoff.py.

◆ train()

qdpy.rl.diveoff.DiveOff.train ( self,
updates )

Complete the configured VAE warm-up and run additional critic iterations.

Train on the fixed log only. Successive calls retain all optimizer and RNG state.

Definition at line 330 of file diveoff.py.


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