WindyGridworld: Windy Gridworld

Description Arguments Details Usage Methods References Examples

Description

Windy Gridworld problem for reinforcement learning. Actions include going left, right, up and down. In each column the wind pushes you up a specific number of steps (for the next action). If an action would take you off the grid, you remain in the previous state. For each step you get a reward of -1, until you reach into a terminal state.

Arguments

...

[any]
Arguments passed on to makeEnvironment.

Details

This is the gridworld (goal state denoted G, start state denoted S). The last row specifies the upward wind in each column.

. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
S . . . . . . G . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
0 0 0 1 1 1 2 2 1 0

Usage

makeEnvironment("windy.gridworld", ...)

Methods

References

Sutton and Barto (Book draft 2017): Reinforcement Learning: An Introduction Example 6.5

Examples

1
env = makeEnvironment("windy.gridworld")

Example output



reinforcelearn documentation built on May 2, 2019, 9:20 a.m.