Giter Club home page Giter Club logo

d2l's Introduction

The D2L Generalized Policy Learner

Installation

The entire D2L pipeline runs in Python3 and relies on the following dependencies:

The provided Dockerfile recipe lists all necessary instructions to install D2L on an Ubuntu box. You can either use it through Docker, or simply follow the commands to install the pipeline locally on your machine.

Usage

Individual experiments are on the experiments folder, grouped by domains. See experiments/gripper.py for an example. A file such as gripper.py contains different experiment configurations for learning in the Gripper domain. We invoke the pipeline with run.py <domain>:<experiment-name> <pipeline-steps-to-be-executed>, where the last parameter is an optional list of experiment step IDs (e.g.: 1 2 3). If no step ID is specified, the entire experiment is run. Example invocations:

  # Learn to clear a block
  ./run.py blocks:clear

  # Learn to stack two blocks
  ./run.py blocks:on

The configuration of each experiment can be inspected by looking at the experiment file.

AAAI21 Paper Experiments

The following is a list of the concrete experiments used in the results table of our AAAI'21 paper, Guillem Francès, Blai Bonet, Hector Geffner, Learning General Policies from Small Examples Without Supervision.

  ./run.py blocks:clear   # Q_clear
  ./run.py blocks:on      # Q_on
  ./run.py gripper:small  # Q_grip
  ./run.py reward:small   # Q_rew
  ./run.py delivery:small # Q_deliv
  ./run.py visitall:small # Q_visit
  ./run.py spanner:small  # Q_span
  ./run.py miconic:small  # Q_micon
  ./run.py blocks:all_at_5     # Q_bw

Using the Docker image

In order to use the provided Docker image, you need a Docker installation on your machine.

Building the image

Build the docker image with the following command from the repo root:

sudo docker build -t d2l -f containers/Dockerfile .

Running the image

You can open a terminal on the image for inspection or debugging by running

sudo docker run --entrypoint bash -it  d2l

Or you can directly run a concrete experiment, e.g.:

sudo docker run --rm d2l blocks:clear

d2l's People

Contributors

abcorrea avatar bonetblai avatar gfrances 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.