Home

Awesome

rogue-gym-agents-cog19

This repository contains codes for exprimens in COG2019 Rogue-Gym: A New Challenge for Generalization in Reinforcement Learning.

Watch agents

Here I show gifs of agents appeared in Section 6.4 in the paper.

Overfitted Agent

CNN + 10 training seeds

Overfitted

Generalized Agent

ResNet + L2 regularization + 40 training seeds

Generalized

Setup

  1. Install pipenv
pip3 install pipenv -U --user
  1. (Optional) Modify Pipfile For example, if you want to use PyTorch 1.0.0, specify torch = '==1.0' in Pipfile.

  2. Create the virtual env

pipenv --site-package --three
pipenv install

Usage

All hyper paremters are at env.py and you need to edit the file to change the experiment setting.

Train agents

pipenv run python agents/ppo_naturecnn.py train
pipenv run python agents/ppo_impalacnn.py train
pipenv run python agents/vae_ppo.py train

Evaluate agents

pipenv run python agents/eval_seeds.py --logdir=$YOUR_LOD_DIR