Coder Social home page Coder Social logo

deep_q_rl's Introduction

Introduction

This package provides a Theano-based implementation of the deep Q-learning algorithm described in:

Playing Atari with Deep Reinforcement Learning Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, Martin Riedmiller

The neural network code is largely borrowed from Sander Dieleman's solution for the Galaxy Zoo Kaggle challenge.

The results obtained with this code are not quite as good as the results from the paper. This could just be a matter of parameter tuning (I've done very little) or it could be something more fundamental.

Here is a video showing a trained network playing breakout:

http://youtu.be/SZ88F82KLX4

Dependencies

  • A reasonably modern NVIDIA GPU
  • Cython
  • OpenCV
  • Theano
  • Pylearn2
  • Arcade Learning Environment This package requires a slightly modified version of ALE. You'll need to replace rlglue_controller.cpp with the provided version before compiling. This version handles down-sampling the image and converting to gray-scale.
  • RL-Glue
  • RL-Glue Python Codec

Running

Use the script ale_run.py to start all the necessary processes:

$ python ale_run.py --exp_pref data

This will store output files in a folder prefixed with data in the current directory. Pickled version of the network objects are stored after every epoch. The file results.csv will contain the testing output. You can plot the progress by executing plot_results.py:

$ python plot_results.py data_09-29-15-46_0p0001_0p9/results.csv

After a couple of days, you can watch the trained network play using the ale_run_watch.py script:

$ python ale_run_watch.py data_09-29-15-46_0p0001_0p9/network_file_99.pkl

See Also

deep_q_rl's People

Contributors

spragunr avatar

Watchers

James Cloos 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.