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

Portable conditioned Gaussian policy using a latent vector directly as input. More...

Public Member Functions

 latent_size (self)
 act (self, observation, latent, deterministic=True)
 Sample an action or use the squashed mean at one chosen latent code.
 save (self, path)
 Save only policy weights, shapes, bounds, and the latent size.
 load (cls, path, *, device="cpu", seed=0)
 Restore an exported actor without offline data or training networks.

Detailed Description

Portable conditioned Gaussian policy using a latent vector directly as input.

Select bounded Box actions from an observation and a standard-normal skill code.

Definition at line 88 of file diveoff.py.

Member Function Documentation

◆ act()

qdpy.rl.diveoff.DiveOffPolicy.act ( self,
observation,
latent,
deterministic = True )

Sample an action or use the squashed mean at one chosen latent code.

Return an action with the environment's original shape, bounds, and dtype.

Definition at line 107 of file diveoff.py.

◆ latent_size()

qdpy.rl.diveoff.DiveOffPolicy.latent_size ( self)
Return the number of coordinates expected by act().

Definition at line 102 of file diveoff.py.

◆ load()

qdpy.rl.diveoff.DiveOffPolicy.load ( cls,
path,
* ,
device = "cpu",
seed = 0 )

Restore an exported actor without offline data or training networks.

Load a numeric policy with a fresh inference generator.

Definition at line 125 of file diveoff.py.

◆ save()

qdpy.rl.diveoff.DiveOffPolicy.save ( self,
path )

Save only policy weights, shapes, bounds, and the latent size.

Write a versioned numeric NPZ for independent inference.

Definition at line 117 of file diveoff.py.


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