Giter Club home page Giter Club logo

inverse_rl's Introduction

Inverse RL

This github: https://github.com/mvieth/inverse_rl

The original authors' github: https://github.com/justinjfu/inverse_rl

Implementations for imitation learning / IRL algorithms in RLLAB

Contains:

Setup

This library requires:

Pendulum example

Running the Pendulum-v0 gym environment:

  1. Collect expert data
python scripts/pendulum_data_collect.py

You should get an "AverageReturn" of around -100 to -150

  1. Run imitation learning
python scripts/pendulum_irl.py

The "OriginalTaskAverageReturn" should reach around -100 to -150

  1. Run GAIL as a comparison
python scripts/pendulum_gail.py

Ant example

  1. Collect expert data
python scripts/ant_data_collect.py
  1. Run AIRL
python scripts/ant_irl.py
  1. Transfer to a disabled ant using the parameters from step 2
python scripts/ant_transfer_disabled.py
  1. Load a policy, execute it, and capture the video
python scripts/ant_demonstrate.py

Trained models

The data folder contains data from the executed scripts. The pickle files (.pkl) contain the learned policies, among other things.

inverse_rl's People

Contributors

justinjfu avatar mvieth avatar

Watchers

 avatar  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.