# Deep Deterministic Policy Gradient

Actions space: Continuous

References: Continuous control with deep reinforcement learning

## Network Structure

## Algorithm Description

### Choosing an action

Pass the current states through the actor network, and get an action mean vector
. While in training phase, use a continuous exploration policy, such as the Ornstein-Uhlenbeck process, to add exploration noise to the action. When testing, use the mean vector
as-is.

### Training the network

Start by sampling a batch of transitions from the experience replay.

- To train the critic network, use the following targets:

First run the actor target network, using the next states as the inputs, and get
. Next, run the critic target network using the next states and
, and use the output to calculate
according to the equation above. To train the network, use the current states and actions as the inputs, and
as the targets.

- To train the actor network, use the following equation:

Use the actor's online network to get the action mean values using the current states as the inputs. Then, use the critic online network in order to get the gradients of the critic output with respect to the action mean values
. Using the chain rule, calculate the gradients of the actor's output, with respect to the actor weights, given
. Finally, apply those gradients to the actor network.

After every training step, do a soft update of the critic and actor target networks' weights from the online networks.

« Previous Next »