Categorical DQN

Actions space: Discrete

Algorithm Description

Training the network

1. Sample a batch of transitions from the replay buffer.
2. The Bellman update is projected to the set of atoms representing the $Q$ values distribution, such that the $i-th$ component of the projected update is calculated as follows: where:

• $[ \cdot ]$ bounds its argument in the range [a, b]
• $\hat{T}_{z_{j}}$ is the Bellman update for atom $z_j$:     $\hat{T}_{z_{j}} := r+\gamma z_j$
3. Network is trained with the cross entropy loss between the resulting probability distribution and the target probability distribution. Only the target of the actions that were actually taken is updated.

4. Once in every few thousand steps, weights are copied from the online network to the target network.