Coder Social home page Coder Social logo

tiny-dqn-tensorflow's Introduction

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

tiny-dqn-tensorflow's People

Contributors

akaraspt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.