Code Monkey home page Code Monkey logo

deep_rl_pong_keras's Introduction

Deep Reinforcement Learning Guide (with Keras and OpenAi gym)

Step by Step Tutorial for Deep Reinforcement Learning Policy Gradients Method with Keras and OpenAi gym.

In this short project we are gonna train a neural network to play Pong game using a reinforcement learning algorithm (Policy Gradients Method - REINFORCE).

if you want to run it, just clone the repo and open the reinforcement_learning_pong_keras_policy_gradients.ipynb and read and run the notebook

click here to view on github

we train a simple 200 hidden neuron network and a convolutional model.

sample playing of simple network:

video of simple network playing a game (https://www.youtube.com/watch?v=Ol163jSlEPI):

video of convolutional network playing a game (https://www.youtube.com/watch?v=1goeHG_hsUo):

Considering limited time and for learning purposes I am not aiming for a perfect trained agent, but i hope this project could help people get familiar with basic process of rl algorithms and keras. The above video took 3 days for agent to learn on a slow computer. to obtain production results, a lot of more training and tuning is required which is not our focus.

prerequisites: familiarity with neural networks,supervised learning, tensorflow and keras, openai gym

deep_rl_pong_keras's People

Contributors

thinkingparticle 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.