|
QDpy
|
Train a recurrent skill-conditioned policy with real replay and imagined trajectories. More...
Public Member Functions | |
| stats (self) | |
| Public Member Functions inherited from qdpy.rl.sac.SAC | |
| train (self, max_env_steps) | |
| Spend an additional environment-step budget, retaining replay and optimizers. | |
Train a recurrent skill-conditioned policy with real replay and imagined trajectories.
Implement QDAC-MB for numeric Box observations and continuous Box actions. Use the same physical skill bounds and pre-action feature callback as model-free QDAC. This vector-state adaptation uses a categorical GRU world model, prediction of reward, features and continuation, and pathwise actor updates through imagined lambda returns. It uses the standard QDpy continuous-action layout and an episode session. :param env_factory: Callable returning a fresh Gymnasium environment. :param feature: Callable returning a feature vector from observation, action and info. :param skill_bounds: Ordered physical bounds for each feature coordinate. :param skill_sampler: Optional function of a NumPy Generator returning a desired skill. :param policy: Optional PolicyConfig with the latent actor's widths. :param config: Optional QDACMBConfig controlling real and imagined work. :param max_episode_steps: External time limit for environment interactions. :param seed: Nonnegative seed for initialization, replay, goals and actions. :param device: Torch CPU or CUDA device.
Definition at line 358 of file qdac_mb.py.
| qdpy.rl.qdac_mb.QDACMB.stats | ( | self | ) |
Return real training steps, sampled replay rows, imagined steps, and updates.
Reimplemented from qdpy.rl.sac.SAC.
Definition at line 389 of file qdac_mb.py.