Coder Social home page Coder Social logo

rl-a3c-riverraid-v0's Introduction

RL-A3C-Riverraid-v0

A simple implementation of A3C for atari game Riverraid-v0 from scratch. Joint work with @xmty777

  • Only use torch data structure and some commonly used torch functions.
  • Implement my own Conv2d, Linear and LSTM layers, including forward and backward.

How to train

  virtualenv --python=python3 venv
  source venv/bin/activate
  
  # install dependencies
  pip install -r requirement.txt
  
  # train
  python A3C/my_main.py

The detail hyperparameters are configed by python class Config in my_main.py. Train model and log would be stored in ./model and ./log separately.

How to test

No implementation. By you can implement your test file refer to PB17111656.py.

Result

100

gif

Reference

pytorch-a3c

torch.optim.adam

Welcome to Deep Reinforcement Learning Part 1 : DQN

百度百科:卷积神经网络

pytorch官方文档:nn.functional

机器学习课件/Lec10.pdf

空洞卷积理解

怎样通俗易懂地解释反卷积?

Policy Gradient Methods for Reinforcement Learning with Function Approximation

AC、A2C、A3C算法

Actor-Critic

深度强化学习算法 A3C

rl-a3c-riverraid-v0's People

Contributors

gpzlx1 avatar xmty777 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

rl-a3c-riverraid-v0's Issues

model and test

I was looking for a runnable model which given an observation, returns the appropriate action. I followed your instructions for testing the saved model you have provided but some modules seem to be missing. I would be glad if you could provide the trained model with a descriptive usage guideline.

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.