Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

COG 2019 Rogue-Gym: A New Challenge for Generalization in Reinforcement Learning

Notifications You must be signed in to change notification settings

kngwyu/rogue-gym-agents-cog19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • PPO with nature CNN
pipenv run python agents/ppo_naturecnn.py train
  • PPO with impala CNN
pipenv run python agents/ppo_impalacnn.py train
  • PPO with β-VAE feature extractor(β is hard coded in the file)
pipenv run python agents/vae_ppo.py train

Evaluate agents

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

About

COG 2019 Rogue-Gym: A New Challenge for Generalization in Reinforcement Learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published