Giter Site home page Giter Site logo

wwxfromtju / gridworld Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sha-lab/gridworld

0.0 0.0 0.0 25 KB

Gridworld Environment for SynPo

Home Page: https://sites.google.com/view/neurips2018-synpo/home

License: MIT License

Python 100.00%

gridworld's Introduction

Gridworld Environment for SynPo

This repository implements a multi-task gridworld environment used in the SynPo paper. If you are using it to your research, please cite:

@inproceedings{hu2018synthesize,
  title={Synthesized Policies for Transfer and Adaptation across Tasks and Environments},
  author={Hu, Hexiang and Chen, Liyu and Gong, Boqing and Sha, Fei},
  booktitle={Advances in Neural Information Processing Systems},
  pages={1176--1185},
  year={2018}
}

Requirements

  • Python 3+
  • Numpy 1.10.0+
  • OpenAI Gym
  • Imageio
  • Dill
  • Matplotlib
  • Pygame

Usage

To use the GridWorld, you need to specify the the set of maps you want to sampled from and the number of objects appear in each map. The task is to pick up a sequence of objects in a specific order.

To get a gridworld env with mask observation, use GridWorld. If you want gridworld with RGB observation, use PORGBEnv wrapper. You can specify argument l to control the window size around the agent. If l is smaller than the radius of the map, the environment will be partially observable.

You can also call env.get_opt_action() to get the optimal action for the task currently sovling, which can be used easily for imitation learning.

References

License

BISON is MIT licensed, as found in the LICENSE file.

gridworld's People

Contributors

hexiang-hu avatar lchenat 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.