GithubHelp home page GithubHelp logo

aspineon / bots-for-atari-games Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adegard/bots-for-atari-games

0.0 1.0 0.0 26 KB

Bots for Atari Games using Reinforcement Learning

License: Apache License 2.0

Python 100.00%

bots-for-atari-games's Introduction

Want an in-person tutorial with step-by-step walkthroughs and explanations? See the corresponding AirBnb experience for both beginner and experienced coders alike, at "Build a Dog Filter with Computer Vision" (See the 45+ 5-star reviews)

This repository includes all source code for the tutorial on DigitalOcean with the same title, including:

  • Q-table based agent for FrozenLake
  • Simple neural network q-learning agent for FrozenLake
  • Least squares q-learning agent for FrozenLake
  • Code to use fully pretrained Deep Q-learning Network (DQN) agent on Space Invaders

Each of these agents solve FrozenLake in 5000 episodes or fewer; whereas not in record time or even close to it, the agents are written with minimal tuning

created by Alvin Wan, January 2018

agent

Getting Started

For complete step-by-step instructions, see the tutorial on DigitalOcean. This codebase was developed and tested using Python 3.6. If you're familiar with Python, then see the below to skip the tutorial and get started quickly:

(Optional) Setup a Python virtual environment with Python 3.6.

  1. Navigate to the repository root, and install all Python dependencies.
pip install -r requirements.txt
  1. Navigate into src.
cd src
  1. Download the Tensorflow model for SpaceInvaders, from Tensorpack's A3C-Gym sample.
mkdir models
wget http://models.tensorpack.com/OpenAIGym/SpaceInvaders-v0.tfmodel -O models/SpaceInvaders-v0.tfmodel
  1. Launch the script to see the Space Invaders agent in action.
python bot_6_dqn.py --visual

How it Works

See the below resources for explanations of related concepts:

bots-for-atari-games's People

Contributors

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