GymEnvironment: Gym Environment

Description Arguments Details Usage Installation Methods Examples

Description

Reinforcement learning environment from OpenAI Gym.

Arguments

gym.name

[character(1)]
Name of gym environment, e.g. "CartPole-v0".

...

[any]
Arguments passed on to makeEnvironment.

Details

For available gym environments take a look at https://gym.openai.com/envs.

Usage

makeEnvironment("gym", gym.name, ...)

Installation

For installation of the python package gym see https://github.com/openai/gym#installation. Then install the R package reticulate.

Methods

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Create an OpenAI Gym environment.
# Make sure you have Python, gym and reticulate installed.
env = makeEnvironment("gym", gym.name = "MountainCar-v0")
env$reset()
env$close()

## End(Not run)

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