|
QDpy
|
Train a reusable standalone Soft Actor-Critic policy. More...
Public Member Functions | |
| stats (self) | |
| train (self, max_env_steps) | |
| Spend an additional environment-step budget, retaining replay and optimizers. | |
Train a reusable standalone Soft Actor-Critic policy.
Learn a stochastic Box actor from one Gymnasium environment at a time. The standalone learner uses uniform actions for the first learning_starts steps. Subsequent exploration samples the learned Gaussian. The reward critic bootstraps time limits from their final observation. It never bootstraps a termination. :param env_factory: Callable creating fresh single Gymnasium environments. :param policy: Actor architecture as a PolicyConfig. :param config: Replay and optimizer settings as a SACConfig. :param max_episode_steps: External horizon treated as a truncation. :param seed: Nonnegative initialization, interaction, and replay seed. :param device: Torch CPU or CUDA device.
| qdpy.rl.sac.SAC.stats | ( | self | ) |
Return cumulative training costs and the current replay and temperature.
Reimplemented in qdpy.rl.qdac_mb.QDACMB.
| qdpy.rl.sac.SAC.train | ( | self, | |
| max_env_steps ) |
Spend an additional environment-step budget, retaining replay and optimizers.
Train in a fresh environment and return cumulative statistics.
Reimplemented in qdpy.rl.smerl.SMERL.