QDpy
Loading...
Searching...
No Matches
qdpy.rl.qdac_mb.QDACMBPolicy Class Reference

Numeric policy artifact with a recurrent observation model and a latent actor. More...

Public Member Functions

 skill_bounds (self)
 device (self)
 new_episode (self, *, seed=None)
 Start an independent recurrent state and stochastic action stream.
 save (self, path)
 Save model layout, bounds and inference weights in a numeric NPZ.
 load (cls, path, *, device="cpu", seed=0)
 Load a recurrent policy without a simulator, replay, or optimizer.

Detailed Description

Numeric policy artifact with a recurrent observation model and a latent actor.

Hold the policy weights, physical skill bounds, and observation and action layouts.

The actor uses a recurrent session because the current latent state
depends on previous actions. Its saved representation contains the
latent model and squashed Gaussian actor weights.

:param observation_space: Gymnasium Box containing the raw numeric observation.
:param action_space: Finite floating-point Gymnasium Box.
:param skill_bounds: Physical bounds for the desired behaviour coordinates.
:param policy: Optional PolicyConfig for the latent-space actor.
:param world: Optional QDACMBWorldConfig for recurrent inference.
:param seed: Initialization seed and default seed for new sessions.
:param device: Torch CPU or CUDA device.

Definition at line 152 of file qdac_mb.py.

Member Function Documentation

◆ device()

qdpy.rl.qdac_mb.QDACMBPolicy.device ( self)
Return the policy's Torch device.

Definition at line 193 of file qdac_mb.py.

◆ load()

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

Load a recurrent policy without a simulator, replay, or optimizer.

Restore the actor and latent dynamics with a default seed for new sessions.

Definition at line 222 of file qdac_mb.py.

◆ new_episode()

qdpy.rl.qdac_mb.QDACMBPolicy.new_episode ( self,
* ,
seed = None )

Start an independent recurrent state and stochastic action stream.

Parameters
seedOptional override for this episode's sampling stream.
Returns
A session with a fresh recurrent state.
Return an inference session for a freshly reset environment.

Definition at line 206 of file qdac_mb.py.

◆ save()

qdpy.rl.qdac_mb.QDACMBPolicy.save ( self,
path )

Save model layout, bounds and inference weights in a numeric NPZ.

Export the policy independently of the trainer and simulator.

Definition at line 213 of file qdac_mb.py.

◆ skill_bounds()

qdpy.rl.qdac_mb.QDACMBPolicy.skill_bounds ( self)
Return immutable physical skill intervals.

Definition at line 188 of file qdac_mb.py.


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