Skip to content

rllab-snu/mog_dqn_car_racing

Repository files navigation

Yunho Choi, Kyungjae Lee, and Songhwai Oh, "Distributional Deep Reinforcement Learning with a Mixture of Gaussians," in Proc. of the IEEE International Conference on Robotics and Automation (ICRA), May 2019.

MoG-DQN implementation by Yunho Choi:

adapted from https://github.com/Silvicek/distributional-dqn

  1. install baseline https://github.com/ececyh/baselines (pip install -e .)
  2. pip install gym, box2d (if swig error, sudo apt-get install swig)
  3. import train_car_racing and run the exp function ex) train_car_racing.exp(buffer_size=1e6, action_res=[5,5,5])

Distributional DQN

Implementation of 'A Distributional Perspective on Reinforcement Learning' and 'Distributional Reinforcement Learning with Quantile Regression' based on OpenAi DQN baseline.

C51:

c51

Quantile Regression: (see branch quantile)

quantile regression

Installation

Install the OpenAi fork https://github.com/Silvicek/baselines (parent changes a lot, compatibility isn't guaranteed) Then install requirements

pip3 install -r requirements.txt

Usage:

For simple benchmarking:

python3 train_[{cartpole, pong}].py
python3 enjoy_[{cartpole, pong}].py

For full Atari options see help

python3 train_atari.py --help

after learning, you can visualize the distributions by running

python3 enjoy_atari.py --visual ...

This implementation has been successfully tested on: Pong, Qbert, Seaquest

Some baseline features not supported (prioritized replay, double q-learning, dueling)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages