1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 19:20:19 +01:00
Files
coach/docs_raw/source/components/agents/value_optimization/n_step.rst
Itai Caspi 6d40ad1650 update of api docstrings across coach and tutorials [WIP] (#91)
* updating the documentation website
* adding the built docs
* update of api docstrings across coach and tutorials 0-2
* added some missing api documentation
* New Sphinx based documentation
2018-11-15 15:00:13 +02:00

1.2 KiB
Raw Blame History

Actions space: Discrete

References: Asynchronous Methods for Deep Reinforcement Learning

Network Structure

/_static/img/design_imgs/dqn.png

Algorithm Description

Training the network

The N-step Q learning algorithm works in similar manner to DQN except for the following changes:

  1. No replay buffer is used. Instead of sampling random batches of transitions, the network is trained every N steps using the latest N steps played by the agent.

  2. In order to stabilize the learning, multiple workers work together to update the network. This creates the same effect as uncorrelating the samples used for training.

  3. Instead of using single-step Q targets for the network, the rewards from $N$ consequent steps are accumulated to form the N-step Q targets, according to the following equation: R(st,at)=i=t+k1i=tγitri+γkV(st+k) where k is TmaxState_Index for each state in the batch