ray/rllib/agents/ddpg
2021-08-31 14:56:53 +02:00
..
tests [RLlib] Move existing fake multi-GPU learning tests into separate buildkite job. (#18065) 2021-08-31 14:56:53 +02:00
__init__.py [RLlib] DDPG PyTorch version. (#7953) 2020-04-16 10:20:01 +02:00
apex.py [RLlib] Fix all example scripts to run on GPUs. (#11105) 2020-10-02 23:07:44 +02:00
ddpg.py [RLlib] Replay buffers: Add config option to store contents in checkpoints. (#17999) 2021-08-31 12:21:49 +02:00
ddpg_tf_model.py [RLlib] DDPG/TD3 + A3C/A2C + MARWIL/BC Annotation/Comments/Code Cleanup (#14707) 2021-05-19 16:32:29 +02:00
ddpg_tf_policy.py [RLlib] Redo: Add support for multi-GPU to DDPG. (#17789) 2021-08-13 18:01:24 -07:00
ddpg_torch_model.py [RLlib] DDPG torch GPU bug. (#16133) 2021-05-28 22:09:25 +02:00
ddpg_torch_policy.py [RLlib] Add multi-GPU learning tests to nightly. (#17778) 2021-08-18 17:21:01 +02:00
noop_model.py [RLlib] Tf2x preparation; part 2 (upgrading try_import_tf()). (#9136) 2020-06-30 10:13:20 +02:00
README.md [RLlib] Improved Documentation for PPO, DDPG, and SAC (#12943) 2020-12-24 09:31:35 -05:00
td3.py [RLlib] DDPG PyTorch version. (#7953) 2020-04-16 10:20:01 +02:00

Deep Deterministic Policy Gradient (DDPG)

Overview

DDPG is a model-free off-policy RL algorithm that works well for environments in the continuous-action domain. DDPG employs two networks, a critic Q-network and an actor network. For stable training, DDPG also opts to use target networks to compute labels for the critic's loss function.

For the critic network, the loss function is the L2 loss between critic output and critic target values. The critic target values are usually computed with a one-step bootstrap from the critic and actor target networks. On the other hand, the actor seeks to maximize the critic Q-values in its loss function. This is done by sampling backpropragable actions (via the reparameterization trick) from the actor and evaluating the critic, with frozen weights, on the generated state-action pairs. Like most off-policy algorithms, DDPG employs a replay buffer, which it samples batches from to compute gradients for the actor and critic networks.

Documentation & Implementation:

  1. Deep Deterministic Policy Gradient (DDPG) and Twin Delayed DDPG (TD3)

    Detailed Documentation

    Implementation

  2. Ape-X variant of DDPG (Prioritized Experience Replay)

    Detailed Documentation

    Implementation