Giter Club home page Giter Club logo

atari_rl's Introduction

In this project, we implement Rainbow and replace c51 in Rainbow with IQN.

Algorithm Implemented

  • Rainbow
  • PER
  • Noisy Nets
  • Double
  • c51
  • Dueling nets
  • IQN

Results

Basically all arguments are from reference papers, I did not take much time to fine-tune these arguments, since it takes too long to run a trial on atari.

Rainbow-IQN on BreakoutNoFrameskip-v4

Video

Learning Curve

Episodic rewards averaged over 100 episodes at training time.

Compare to Google's Dopamine shown below, our implementation manages to achieving better performance on Breakout

Source: https://google.github.io/dopamine/baselines/plots.html, each iteration stands for 250000 steps.

Running

# Silence tensorflow debug message
export TF_CPP_MIN_LOG_LEVEL=3

# By default, this line runs rainbow-iqn, which replaces c51 in rainbow with iqn
# For full argument specification, please refer to run/train.py
python run/train.py

Details

All tests are done in PongNoFrameskip-v4 and BreakoutNoFrameskip-v4,

  1. Double Q nets, noisy layers, PER, multi-steps are used by default.

  2. Unlike the official implementation, we apply layer normalization to dense layers, instance normalization to conv layers, which could be designated by conv_norm and dense_norm in algo/rainbow_iqn/args.yaml

Paper References

Dan Horgan et al. Distributed Prioritized Experience Replay

Hado van Hasselt et al. Deep Reinforcement Learning with Double Q-Learning

Tom Schaul et al. Prioritized Experience Replay

Meire Fortunato et al. Noisy Networks For Exploration

Ziyu Wang et la. Dueling Network Architectures for Deep Reinforcement Learning

Will Dabney et al. Implicit Quantile Networks for Distributional Reinforcement Learning

Code References

Homework of Berkeley CS291-112

Google Dopamine

atari_rl's People

Contributors

xlnwel avatar

Stargazers

 avatar  avatar

Watchers

 avatar

atari_rl's Issues

It doesn't work!!

when u run python run/train.py

you will just get a

File "run/train.py", line 57
raise NotImplementedError(f'In valid name {algorithm}')
^
SyntaxError: invalid syntax

no matter if add --algorithm iqn

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.