Skip to content

This is the code for the SF Python meetup group tutorial on reinforcement learning

Notifications You must be signed in to change notification settings

arcman77/pong_reinforcement_learning

 
 

Repository files navigation

##Overview This is the code for the SF Python meetup group tutorial on reinforcement learning. We will build the game of Pong using Pygame and then build a Deep Q Network using OpenCV and Tensorflow. Then we will train the network to play the game. The DQN is a convolutional neural network that reads in pixel data from the game and the game score.

##Installation

  1. Install Continuum miniconda (https://conda.io/miniconda.html)
  2. Run conda env create
  3. Run source activate pong

This should install all necessary dependencies in a painless way.

For manual install, here are the required dependencies and links to install them:

##Usage Once you've completed the exercises, you can run it like in terminal:

python RL.py

The longer you let it run, the better it will get.

##Solutions Solution code is provided in the solutions folder.

##Credits

Code originally developed by malreddysid, updated by llSourcell. I've adapted it to TF 1.0, Anaconda python and adapted to be used for an exercise.

##References

About

This is the code for the SF Python meetup group tutorial on reinforcement learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%