akaraspt / tiny-dqn-tensorflow

Tiny implementation of Deep-Q Network with Tensorflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Human-Level Control through Deep Reinforcement Learning

This code is the tiny Tensorflow implementation of Deep-Q Network Human-Level Control through Deep Reinforcement Learning.

I implemented this code based on two existing github repos:

  • tiny-dqn for tiny implementation with Tensorflow
  • DQN-tensorflow for replay memory, preprocessing, and parameter settings

This implementation contains:

  • Deep Q-network and Q-learning
  • Random start game
  • Experience replay memory
    • to reduce the correlations between consecutive updates
  • Network for Q-learning targets are fixed for intervals
    • to reduce the correlations between target and predicted Q-values
  • Use Huber loss instead of clipping the gradients of mean-squared-error (MSE) loss (different from the paper)
    • to improve the stability of training
  • Reward clipping to -1 and +1

So far, I only tested this code with the Breakout-v0.

Environment

atari-py (0.1.1)
backports.shutil-get-terminal-size (1.0.0)
backports.weakref (1.0.post1)
bleach (1.5.0)
Box2D-kengz (2.3.3)
certifi (2017.11.5)
chardet (3.0.4)
decorator (4.1.2)
enum34 (1.1.6)
funcsigs (1.0.2)
future (0.16.0)
futures (3.1.1)
gym (0.9.4)
html5lib (0.9999999)
idna (2.6)
imageio (2.2.0)
ipython (5.5.0)
ipython-genutils (0.2.0)
Keras (2.1.1)
Markdown (2.6.9)
mock (2.0.0)
mujoco-py (0.5.7)
numpy (1.13.3)
olefile (0.44)
pachi-py (0.0.21)
pathlib2 (2.3.0)
pbr (3.1.1)
pexpect (4.3.0)
pickleshare (0.7.4)
Pillow (4.3.0)
pip (9.0.1)
prompt-toolkit (1.0.15)
protobuf (3.5.0)
ptyprocess (0.5.2)
pyglet (1.3.0)
Pygments (2.2.0)
PyOpenGL (3.1.0)
PyYAML (3.12)
requests (2.18.4)
scandir (1.6)
scipy (1.0.0)
setuptools (36.5.0.post20170921)
simplegeneric (0.8.1)
six (1.11.0)
tensorflow-gpu (1.4.0)
tensorflow-tensorboard (0.4.0rc3)
Theano (1.0.0)
tqdm (4.19.4)
traitlets (4.3.2)
urllib3 (1.22)
wcwidth (0.1.7)
Werkzeug (0.12.2)
wheel (0.29.0)

Training

python main.py -v

Testing

python main.py --test --render

License

  • For academic and non-commercial use only
  • Apache License 2.0

About

Tiny implementation of Deep-Q Network with Tensorflow

License:Apache License 2.0


Languages

Language:Python 100.0%