Git Product home page Git Product logo

red's Introduction

RED: Random Expert Distillation

This is the implementation for the paper Random Expert Distillation: Imitation Learning via Expert Policy Support Estimation from ICML 2019. This repo is part of the software offered by Personal Robotics Lab@Imperial.

RED leverages the Trust Region Policy Policy Optimization (TRPO) implementation from OpenAI's baselines. Please refer to the baselines repo for installation prerequisites and instructions.

Models

We provide implementation of three models in rnd_gail/folder. They correspond to command line argument --reward= 0, 1 and 2.

  1. Random Expert Distillation (RED): reward function from expert support estimation with random prediction problems.
  2. AutoEncoder (AE): reward function from expert support estimation with autoencoder prediction.
  3. Generative Moment Matching Imitation Learning (GMMIL): benchmark method from this work.

Training

To train a model:

$ python rnd_gail/mujoco_main.py --env_id=<environment_id> --reward=<reward_model> [additional arguments]

We have provided a working configuration of hyper parameters in rnd_gail/mujoco_main for Mujoco tasks. To override them from the command line, please disable the defaults in the script first.

Example: RND with MuJoCo Hopper

For instance, to train MuJoCo Hopper using RED for 2M timesteps

$ python rnd_gail/mujoco_main.py --env_id=Hopper-v2 --reward=0 --num_timesteps=2e6

Saving and loading models

Models are saved at <user_home>/workspace/checkpoint/mujoco/. To run a saved model:

$ python rnd_gail/run_expert.py --env_id=<environment_id> --pi=<model_filename>

Reference

To cite this work please refer to:

@inproceedings{wang2019random,
  author = {Wang, Ruohan and Ciliberto, Carlo and Amadori, Pierlugi and Demiris, Yiannis},
  title = {Random Expert Distillation: Imitation Learning via Expert Policy Support Estimation},
  year = {2019},
  booktitle = {Proceedings of International Conference on Machine Learning},
  organization = {ACM},
}

red's People

Contributors

cciliber avatar ruohanw avatar

Stargazers

 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.