Code Monkey home page Code Monkey logo

icsdice's Introduction

Learning Constraints from Offline Demonstrations via Superior Distribution Correction Estimation

This is the code for the paper "Learning Constraints from Offline Demonstrations via Superior Distribution Correction Estimation" published at ICML 2024. The implementation is based on the code from Cleanrl and jax-rl.

Setup Experimental Environments

You may run the following command to install dependencies:

pip install -r requirements.txt
pip install -U "jax[cuda]==0.4.23" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
pip install git+https://github.com/quangr/dejax.git

Then you can download the dataset and put under the ./dataset.

Point Maze

to run Point Maze compare: jupyter nbconvert --to notebook --execute --inplace icrl/maze/exp/train.ipynb --ExecutePreprocessor.timeout=-1

Grid-World

To run Grid-World env with our method:

jupyter nbconvert --to notebook --execute --inplace icrl/grid_world/ICSDICE.ipynb --ExecutePreprocessor.timeout=-1

To run Grid-World env with RECOIL-V:

python icrl/grid_world/recoil-V.py

Mujoco

To run mujoco env with our method:

python icrl/benchmark/ICSDICE.py --seed 1 --alpha=0.0001 --total-timesteps=1000000 --debug=False --update-period=100000 --beta=0.5 --env-id=Ant_ls --cost-l2=0.0005 --cost-limit=0.9 --expert-ratio 1.0

icsdice's People

Contributors

quangr avatar

Stargazers

 avatar Jie-Jing Shao avatar

Watchers

 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.