Giter VIP home page Giter VIP logo

hidil's Introduction

HIDIL

Offline Imitation Learning with a Misspecified Simulator

This repository is code for the paper

Shengyi Jiang, Jing-Cheng Pang, Yang Yu. Offline imitation learning with a misspecified simulator. In: Advances in Neural Information Processing Systems 33 (NeurIPS'20), Virtual Conference, 2020.

Requirement

  • python 3.6
  • Anaconda
  • gym
  • tmux
  • tqdm
  • tmuxp
  • numpy
  • pyyaml
  • mujoco_py
  • matplotlib
  • tensorflow==1.13.1

Instructions

For automatic running this code in parallel, you may firstly install tmux and Anaconda. You have access to pretrain expert models on different dynamics mismatch from Google Drive.
# Preparations:
sudo apt-get install tmux
conda create -n your_venv python=3.6
source activate your_venv
pip install -r requirements.txt

# For a minimum running, you can run the following command: 
python main.py --process_num 5 --env_list "Walker2d-v2" --variety_list "0.5" --transfer_type "gravity"

# For customized running, you can modify generate_tmux_config.py and run:
python generate_tmux_config.py --conda_name your_venv
tmuxp load run_all.yaml

After one experiment has been done, the summary data will be saved in ./result/summary, which can be loaded by:

import numpy as np
summary = np.load("file_name.npy", allow_pickle=True).item()

where summary is a basic type [dict].

hidil's People

Contributors

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