QDpy
Loading...
Searching...
No Matches
qdpy.rl.td3.TD3 Class Reference

Train a deterministic Box policy using the twin delayed DDPG algorithm. More...

Public Member Functions

 stats (self)
 train (self, max_env_steps)
 Spend an additional environment-step budget, retaining replay and optimizers.

Detailed Description

Train a deterministic Box policy using the twin delayed DDPG algorithm.

Train with Gaussian exploration and uniform experience replay.

:param env_factory: Callable returning a fresh Gymnasium environment with
    finite floating-point Box actions and fixed numeric Box observations.
:param policy: Actor architecture as a :class:`PolicyConfig`.
:param config: Replay and training settings as a :class:`TD3Config`.
:param max_episode_steps: External episode horizon, treated as truncation.
:param seed: Nonnegative seed for initial weights, rollouts, and replay.
:param device: Torch CPU or CUDA device.

Definition at line 254 of file td3.py.

Member Function Documentation

◆ stats()

qdpy.rl.td3.TD3.stats ( self)
Return cumulative training costs and current replay size.

Definition at line 283 of file td3.py.

◆ train()

qdpy.rl.td3.TD3.train ( self,
max_env_steps )

Spend an additional environment-step budget, retaining replay and optimizers.

Train in a fresh environment and return cumulative statistics.

Definition at line 298 of file td3.py.


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