Code Monkey home page Code Monkey logo

mendez2022modularlifelongrl's Introduction

Modular Lifelong RL

This code base reproduces the experiments of the ICLR 2022 paper "Modular Lifelong Reinforcement Learning via Neural Composition".

Discrete 2-D tasks

Primary dependencies:

  • Python 3.6
  • gym-minigrid: install local version via pip install -e gym-minigrid
  • torch-ac-composable: install local version via pip install -e torch-ac-composable
  • pytorch version 1.5.1

To reproduce the results of our compositional agent, execute the following command from the torch-ac-composable/torch_ac_composable/ directory:

python -m experiments.ppo_minigrid_lifelong --algo comp-ppo --learning-rate 1e-3 --steps-per-proc 256 --batch-size 64 --procs 16 --num-tasks 64 --num-steps 1000000 --max-modules 4

Robotic Manipulation

Primary dependencies:

  • Python 3.6
  • Spinning Up: install local version via pip install -e spinningup
  • Robosuite: install local version via pip install -e robosuite
  • pytorch version 1.8.1

To reproduce the results of our compositional agent, execute the following command from the training/ directory:

python train_lifelong_ppo.py --algo comp-ppo --num-tasks 48 --cpu 40 --gamma 0.995 --epochs 150 --steps 8000

Citing our work

If you use this work, please make sure to cite our paper:

@inproceedings{
    mendez2022modular,
    title={Modular Lifelong Reinforcement Learning via Neural Composition},
    author={Jorge A Mendez and Harm van Seijen and Eric Eaton},
    booktitle={International Conference on Learning Representations},
    year={2022},
    url={https://openreview.net/forum?id=5XmLzdslFNN}
}

mendez2022modularlifelongrl's People

Contributors

jorge-a-mendez avatar

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.