Git Product home page Git Product logo

cecw's Introduction

Colorful Extended Cleanup World (CECW)

This repository mainly contains the Colorful Extended Cleanup World (CECW) dataset, a benchmark for compositional generalization investigation such as the work in Revisit Systematic Generalization via Meaningful Learning.

Introduction

As the name suggests, the CECW dataset is a color-extended version of the Cleanup World (CW) borrowed from the mobile-manipulation robot domain (MacGlashan et al., 2015). CW refers to a world equipped with a movable object as well as four rooms in four colors, including "blue," "green," "red," and "yellow," which is designed as a simulation environment where the agent can act based on the instructions received (Gopalan et al., 2018). CW obeys a particular Geometric Linear Temporal Logic (GLTL) to parse commands by grammatical syntax, resulting in a total of 3382 commands reflecting 39 GLTL expressions. In addition, commands can be represented in textual expressions as shown in the table.

The task in CW can be formatted as a supervised semantic parsing problem to translate commands (e.g., "go to the red room") to their textual expressions (e.g., "F R"). In this repository, we show how CECW is generated on the basis of CW in detail. Besides, we illustrate how to generate subsets from CECW to study synonymous generalization. I hope the publication of the CECW dataset can promote the research in related fields, as well as yours.

Directory

  • CW - the folder contains the original CW dataset
  • train_test_split.ipynb - the main process to generate CECW from CW
  • pp_data.ipynb - the data preprocessing to generate 6 subsets from CECW so as to investigate synonymous generalization
  • train_src.txt - CECW source data for training
  • train_tar.txt - CECW target data for training
  • test_src.txt - CECW source data for testing
  • test_tar.txt - CECW target data for testing
CECW
├── ALL
├── B
├── BC
├── BCR
├── BCRY
├── CW
├── Colorless
├── README.md
├── helper_functions.py
├── pp_data.ipynb
├── reference
├── test_src.txt
├── test_tar.txt
├── train_src.txt
├── train_tar.txt
└── train_test_split.ipynb

Dependencies

  • python >= 3.7.6
  • jupyter >= 1.0.0
  • numpy>=1.18.1

Setup

Please ensure the following packages are already installed. A virtual environment is recommended.

  • Jupyter Notebook (for .ipynb)
$ cd CECW/
$ pip install pip --upgrade
$ pip install notebook
$ pip install -r requirements.txt

Run

Simply view train_test_split.ipynb and pp_data.ipynb via jupyter notebook. You can also use train_src.txt, train_tar.txt, test_src.txt, and test_tar.txt directly.

Authors

Reference

  1. Squire, S., Tellex, S., Arumugam, D., & Yang, L. Grounding English Commands to Reward Functions.
  2. Gopalan, N., Arumugam, D., Wong, L. L., & Tellex, S. (2018). Sequence-to-Sequence Language Grounding of Non-Markovian Task Specifications. In Robotics: Science and Systems.

cecw's People

Contributors

dependabot[bot] avatar mrshininnnnn avatar

Stargazers

 avatar  avatar  avatar

Watchers

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