Git Product home page Git Product logo

agent-centric-representations's Introduction

Usage

The code contains implementations of two algorithms

  1. ACRO - learns agent centric representations with a multi-step inverse dynamics model.
  2. InfoGating - adds an InfoGating bottleneck over a contrastive variant of the multi-step inverse dynamics model.

Installation

The provided requirements.txt file contains all main dependencies required to run this code (tested on Python 3.8). You will also need to download the offline datasets from v-d4rl paper or (depending on which kinds of distractors you want to test with) from the ACRO paper and have them in ./vd4rl path.

Running

Simply use the train.py script to run ACRO/InfoGating. Provide a task_name, offline_dir directory where the offline code is available and which algo to run. The dist_level argument is only used for naming result files.

Run ACRO

python train.py task_name=offline_cheetah_run_expert offline_dir=/path/to/dataset/vd4rl/main/cheetah_run/expert/ seed=1 algo=acro dist_level=none

Run InfoGating

python train.py task_name=offline_cheetah_run_expert offline_dir=/path/to/dataset/vd4rl/main/cheetah_run/expert/ seed=1 algo=infogating dist_level=none

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.