Coder Social home page Coder Social logo

mohan-zhang-u / rlgridworld Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 60 KB

grid-world, reinforcement learning

License: MIT License

Python 34.45% Jupyter Notebook 62.07% Makefile 1.40% Batchfile 1.68% Shell 0.40%
customizable easy-to-use grid-world reinforcement-learning reinforcement-learning-environments rendering rl mit-license active-development readthedocs

rlgridworld's Introduction

RLGridWorld

This is a simple yet efficient, highly customizable grid-world implementation to run reinforcement learning algorithms.

The official documentation is here https://rlgridworld.readthedocs.io/

install with

pip install rlgridworld

Environment

You can simply use a string like

W H T O W
W O O H W
W O A O W
W O O T W
W W W W W

to represent a grid-world, where

  • A: Agent
  • T: Target location
  • O: Empty Ground spot (where the agent can step on and stay)
  • W: Wall
  • H: Hole (where the agent will fall if it steps in)

The single_rgb_array rendering of which is:

Alternative text

The goal of the agent is to reach one of the Target locations without falling into a hole or falling out of the edge. (More pre-configured environments can be found in EnvSettings)

Actions

The actions can be continuous or discrete. The agent can also move diagonally. The details can be found in the Action class in rlgridworld/gridenv.py

  • Continuous: Action is a tuple of length 2, where the first element is the x-axis and the second element is the y-axis
  • Discrete: Action can be chosen from ['UP', 'DOWN', 'RIGHT', 'LEFT', 'UPRIGHT', 'UPLEFT', 'DOWNRIGHT', 'DOWNLEFT']

Reward

Customizable with r_fall_off, r_reach_target, r_timeout, r_continue. The details can be found in the __init__ function of class GridEnv in rlgridworld/gridenv.py

rlgridworld's People

Watchers

 avatar  avatar  avatar

rlgridworld's Issues

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.