Git Product home page Git Product logo

mep's Introduction

Maximum Entropy-Regularized Multi-Goal Reinforcement Learning

Here is the code for our ICML-2019 paper "Maximum Entropy-Regularized Multi-Goal Reinforcement Learning".

The code was developed by Rui Zhao (Siemens AG & Ludwig Maximilian University of Munich).

For details on Maximum Entropy-based Prioritization (MEP), please read the ICML paper (link: http://proceedings.mlr.press/v97/zhao19d.html).

The pre-print version is available on arXiv: https://arxiv.org/abs/1905.08786.

The code is developed based on OpenAI Baselines (link: https://github.com/openai/baselines).

Prerequisites

The code requires python3 (>=3.5) with the development headers. You'll also need system packages CMake, OpenMPI and zlib. Those can be installed as follows

Tested on Ubuntu 16.04

sudo apt-get update && sudo apt-get install cmake libopenmpi-dev python3-dev zlib1g-dev

To run the code, you need to install OpenAI Gym (link: https://github.com/openai/gym).
We use the robotics environment in OpenAI Gym, which needs the MuJoCu physics engine (link: http://www.mujoco.org/).

The experiments were carried out on Amazon Web Services (AWS).
The EC2 instances we used have 20 CPUs. We use 19 CPUs for training.
If you are running the experiments on a laptop, please configure a smaller number of CPUs.
Note that, with less CPUs, the performance will be effected.

After the installaton of dependicies, you can reproduce the experimental results by running the following commnands:

python baselines/her/experiment/train.py --env_name FetchPickAndPlace-v0 --num_cpu 19 --prioritization none --replay_strategy none --seed 0
python baselines/her/experiment/train.py --env_name FetchPickAndPlace-v0 --num_cpu 19 --prioritization entropy --replay_strategy none --seed 0
python baselines/her/experiment/train.py --env_name FetchPickAndPlace-v0 --num_cpu 19 --prioritization tderror --replay_strategy none --seed 0
python baselines/her/experiment/train.py --env_name HandManipulatePenRotate-v0 --num_cpu 19 --prioritization none --replay_strategy future --seed 0
python baselines/her/experiment/train.py --env_name HandManipulatePenRotate-v0 --num_cpu 19 --prioritization entropy --replay_strategy future --seed 0
python baselines/her/experiment/train.py --env_name HandManipulatePenRotate-v0 --num_cpu 19 --prioritization tderror --replay_strategy future --seed 0

To test the learned policies, you can run the command:

python baselines/her/experiment/play.py /path/to/an/experiment/policy_latest.pkl

Citation:

Citation of the ICML paper:

@inproceedings{zhao2019maximum,
  title={Maximum Entropy-Regularized Multi-Goal Reinforcement Learning},
  author={Zhao, Rui and Sun, Xudong and Tresp, Volker},
  booktitle={International Conference on Machine Learning},
  pages={7553--7562},
  year={2019}
}

Licence:

MIT

mep's People

Contributors

ruizhaogit avatar

Watchers

James Cloos 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.