Code Monkey home page Code Monkey logo

deep-rl's Introduction

Deep-RL

This project tackles the training of a DQN (Deep Q-Network) agent to learn how to play the popular Atari game "Breakout".

the training was done on a 8cpu GCP VM, and it took a whole day to train the agent for 1M iteration.

The agent reached a superhuman level (meaning it never loose) by just trail and error and using only the game image as an input (Like any human player).

The Architecture and hyperparams of the DQN network are the same used in the original DQN paper by Deepmind https://www.cs.toronto.edu/~vmnih/docs/dqn.pdf

the trained agent in action :

lot of this work is inspired by Auélien Géron's Book "Hands-On Machine learning with Scikit-Learn, Keras & TensorFlow" https://github.com/ageron/handson-ml2/

Run project locally

create a conda environment using the requirement.txt file:

conda create --name rl_env --file requirement.txt

and you are all set !

This uses Tensorflow 2.0 and TF-agents 0.3. Workes and tested on Window10 and Linux as well

Technologies

  • Tensorflow
  • TF-agents
  • OpenAI's Gym[atari] environment

deep-rl's People

Contributors

telkhir avatar

Stargazers

 avatar

Watchers

 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.