Git Product home page Git Product logo

gym-grid's Introduction

Gridworld environments for Open AI gym

Maps

  • Puddle World ('PuddleWorldB-v0','PuddleWorldST1-v0', 'PuddleWorldST2-v0',etc)
  • Mine World ('MineWorldRandomSmall-v0','MineWorldRandomBig-v0')
  • Room World ('RoomWorldFinalBig-v0', 'RoomWorldObjectSmall-v0','RoomWorldExit-v0',etc)

and (not changed from starting repo)

  • Four Rooms
  • Simple Gridworld

Example Maps

alt text alt text alt text

To install

cd gym-grid
pip install -e .

To use

import gym
import gridworlds

env = gym.make('RoomWorld-v0')

To test

cd tests/
test_env.py

Recommended to run tests in an python terminal.

Map Descriptions

  • PuddleWorld - Avoid centre of map and reach goal (goal position varies depending on map being B,ST1,ST2,etc)
  • MineWorld - Maximise reward by avoiding Mines and collecting Fruits. Map is randomised at every call of env.reset()
  • RoomWorld - Complete episode by collecting fruit (to train an 'collect fruit' policy )
  • RoomWorldExit - Complete episode by reaching gap from random start (to train an 'exit room' policy )
  • RoomWorldObjectSmall - Complete episode by collecting the fruit and reaching gap from random start (to train an 'collect fruit and exit room' policy )
  • RoomWorldFinalBig - Complex Map with 6 rooms. Collect all fruits to finish. (Meant as a hierarchical RL benchmark)

Note

  • env_wrapper.py is crucial to get square view output around the agent
  • all the env ids are in gridworlds/__init__.py
  • Roomworlds have the centre of view being number of fruits in a particular room

Starting Point being this repo

gym-grid's People

Contributors

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