Giter Site home page Giter Site logo

hh_ai_thesis's Introduction

DQN-Atari

Deep Q-network implementation for Pong-vo. The implementation follows from the paper - Playing Atari with Deep Reinforcement Learning and Human-level control through deep reinforcement learning.

Results

Video of Gameplay - DQN Nature Paper

DQN Video

Reward per Episode

Rewards Per Episode

Summary of Implementation

DQN Nature Architecture Implementation

  • Input : 84 × 84 × 4 image (using the last 4 frames of a history)
  • Conv Layer 1 : 32 8 × 8 filters with stride 4
  • Conv Layer 2: 64 4 × 4 filters with stride 2
  • Conv Layer 3: 64 3 × 3 filters with stride 1
  • Fully Connected 1 : fully-connected and consists of 512 rectifier units
  • Output : fully connected linear layer with a single output for each valid action.

DQN Neurips Architecture Implementation

  • Input : 84 × 84 × 4 image (using the last 4 frames of a history)
  • Conv Layer 1 : 16 8 × 8 filters with stride 4
  • Conv Layer 2: 32 4 × 4 filters with stride 2
  • Fully Connected 1 : fully-connected and consists of 256 rectifier units
  • Output : fully connected linear layer with a single output for each valid action.

Other Params

  • Optimizer: RMSProp
  • Batch Size: 32
  • E-greedy : 0.1

How to run

Create a new environment

Example:

conda create -n dqn_pong

Install Dependencies

pip install -r requirements.txt

To use gym.wrappers.Monitor to record the last episode

sudo apt-get install ffmpeg

Run Training from Scratch

python train_atari.py

Use a trained agent

python train_atari.py --load-checkpoint-file results/checkpoint_dqn_nature.pth

View Progress

A video is recorded every 50 episodes. See videos in /video/ folder.

hh_ai_thesis's People

Contributors

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