Skip to content

Reproduction in PyTorch of the Influence-aware Memory Architectures for Deep Reinforcement Learning paper by Suau et al.

Notifications You must be signed in to change notification settings

AlexanderKeijzer/influence-aware-memory-torch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Influence Aware Memory PyTorch

Pytorch implementation of the Influence-aware Memory Architectures for Deep Reinforcement Learning by Suau et al using pytorch-a2c-ppo-acktr-gail by Ilya Kostrikov.

Installation

To use please run the following command to install the required packages:

pip install -r requirements.txt

To be able to run the warehouse environment it needs to be registered to gym for new processes. This can be done by adding the following line to the gym.envs.__init__.py file:

register("Warehouse-v0", entry_point="environments.warehouse.warehouse:Warehouse", kwargs={"seed": 0, "parameters": {"num_frames": 1}})

Running

The Warehouse envorinment can be run with a parallel IAM architecture, GRU architecture, just linear layers, or linear layers with 8 frames stacked using, respectively, the commandline arguments IAM, RNN, FNN or FNN8 on the file main.py.

A Google Colab notebook that sets up the environment as needed, trains on the Warehouse environment and saves the results to Google Drive can be found here: https://colab.research.google.com/drive/1nlj8GNdoFGpXgeY29Q7ZfjNc7A_0PEyL?usp=sharing

Results

All results of the reproduction including plotting and raw data can be found in the results folder.

Warehouse Environment

Preview of the warehouse environemnt: warehouse

About

Reproduction in PyTorch of the Influence-aware Memory Architectures for Deep Reinforcement Learning paper by Suau et al.

Resources

Stars

Watchers

Forks