Giter VIP home page Giter VIP logo

multi-step-greedy-reinforcement-learning-algorithms's Introduction

Multi-step Greedy Reinforcement Learning Algorithms

This repository contains the code for mulit-step greedy reinforcement learning algorithms. It mainly includes two variants, discrete action case (DQN) and continous action case (TRPO), based on the paper Multi-step Greedy Reinforcement Learning Algorithms, which was recently presented at ICML 2020.

This implementation makes use of Tensorflow and builds over the code provided by stable-baselines.

Getting Started

Prerequisites

All dependencies are provided in a python virtual-env requirements.txt file. Majorly, you would need to install stable-baselines, tensorflow, and mujoco_py.

Installation

  1. Install stable-baselines
pip install stable-baselines[mpi]==2.7.0
  1. Download and copy MuJoCo library and license files into a .mujoco/ directory. We use mujoco200 for this project.

  2. Clone this repository and copy the deepq_kpi, deepq_kvi, trpo_kpi, and trpo-kvi directories inside this directory.

  3. Activate virtual-env using the requirements.txt file provided.

source <virtual env path>/bin/activate

Example

Use the run_atari.py and run_mujoco.py script for training the kappa-PI/VI variants for DQN and TRPO respectively.

Kappa-PI/VI DQN

python3 run_atari.py --env=BreakoutNoFrameskip-v4

Kappa-PI/VI TRPO

python3 run_mujoco.py --env=Walker2d-v2 

Reference

@inproceedings{tomar2020multi,
  title={Multi-step Greedy Reinforcement Learning Algorithms},
  author={Tomar, Manan and Efroni, Yonathan and Ghavamzadeh, Mohammad},
  booktitle={International Conference on Machine Learning},
  pages={9504--9513},
  year={2020},
  organization={PMLR}
}

multi-step-greedy-reinforcement-learning-algorithms's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jiangnanhugo

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.