| Copyright | (c) Sentenai 2017 |
|---|---|
| License | BSD3 |
| Maintainer | sam@sentenai.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Environments.Gym.ToyText.FrozenLakeV0
Description
The agent controls the movement of a character in a grid world. Some tiles of the grid are walkable, and others lead to the agent falling into the water. Additionally, the movement direction of the agent is uncertain and only partially depends on the chosen direction. The agent is rewarded for finding a walkable path to a goal tile.
- type Runner s a x = RunnerT s a IO x
- newtype StateFL = Position {
- unPosition :: Int
- toVector :: StateFL -> Vector Int
- mkStateFL :: MonadThrow m => Int -> m StateFL
- type Environment = EnvironmentT IO
- type EnvironmentT t = GymEnvironmentT StateFL Action t
- runEnvironment :: Manager -> BaseUrl -> RunnerT StateFL Action IO x
- runEnvironmentT :: MonadIO t => Manager -> BaseUrl -> RunnerT StateFL Action t x
- runDefaultEnvironment :: RunnerT StateFL Action IO x
- runDefaultEnvironmentT :: MonadIO t => RunnerT StateFL Action t x
- data Action
Documentation
The current position of the agent on the frozen lake
Constructors
| Position | |
Fields
| |
mkStateFL :: MonadThrow m => Int -> m StateFL Source #
Build a FrozenLakeV0 state, throwing if the position is out of bounds.
type Environment = EnvironmentT IO Source #
Alias to EnvironmentT in IO
type EnvironmentT t = GymEnvironmentT StateFL Action t Source #
Alias to GymEnvironmentT with FrozenLakeV0 type dependencies
runEnvironment :: Manager -> BaseUrl -> RunnerT StateFL Action IO x Source #
Alias to runEnvironment in IO
runEnvironmentT :: MonadIO t => Manager -> BaseUrl -> RunnerT StateFL Action t x Source #
Alias to runEnvironmentT
runDefaultEnvironment :: RunnerT StateFL Action IO x Source #
Alias to runDefaultEnvironment in IO
runDefaultEnvironmentT :: MonadIO t => RunnerT StateFL Action t x Source #
Alias to runDefaultEnvironmentT
Actions that can be performed in FrozenLakeV0