|
QDpy
|
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. | |
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.
| qdpy.rl.qdac_mb.QDACMBPolicy.device | ( | self | ) |
Return the policy's Torch device.
Definition at line 193 of file qdac_mb.py.
| 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.
| qdpy.rl.qdac_mb.QDACMBPolicy.new_episode | ( | self, | |
| * | , | ||
| seed = None ) |
Start an independent recurrent state and stochastic action stream.
| seed | Optional override for this episode's sampling stream. |
Return an inference session for a freshly reset environment.
Definition at line 206 of file qdac_mb.py.
| 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.
| qdpy.rl.qdac_mb.QDACMBPolicy.skill_bounds | ( | self | ) |
Return immutable physical skill intervals.
Definition at line 188 of file qdac_mb.py.