Coder Social home page Coder Social logo

yashbhutwala / pong-ai Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 2.0 46.24 MB

Deep Q-Learning Networks vs. Policy Gradient Learning in OpenAI Gym's Pong Environment

Python 99.86% Makefile 0.14%
pong openai-gym deep-q-learning policy-gradient tensorflow numpy python

pong-ai's Introduction

Pong AI

This is the final project for CSCI 379 (Intro to AI & CogSci, Spring 2017).

Team Reveries:

  • Yash Bhutwala
  • Matt McNally
  • Kenny Rader
  • John Simmons

Problem Statement

Given a set a pixels from a game of Pong, a mechanism for measuring wins and losses, and a hard-coded opponent agent, could we create an agent that could potentially beat a human opponent, and what would be the best way to do that?

Our approach tests Deep Q-Learning Networks (DQN) against Policy Gradient (PG) learning in order to see which algorithm and architecture learns the best.

How to run the programs:

Deep Q-Learning (DQN)

Our DQN agent can be ran from the ./dqn directory. You can run it by using the command:

python main.py --env_name=Pong-v0 --is_train=True --display=True

This will run the program on the Pong environment with Training Mode and Rendering turned on.

Policy Gradient (PG)

Our PG agent can be ran from the ./pg directory. You can run it by using the command:

python3 yashPong.py

This will run the agent in Training Mode and Rendering turned on by default, though this can be changed in code.

Acknowledgements:

The code for our DQN approach is modified from existing code from devsisters. The original repository can be found here

Likewise, the code for our PG approach is modified from existing code from Dr. Andrej Karpathy. The original code can be found here

pong-ai's People

Watchers

James Cloos avatar Yash Bhutwala avatar  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.