Learn R Programming

gym (version 0.1.0)

env_observation_space_info: Get information (name and dimensions/bounds) of the environment's observation space.

Description

Get information (name and dimensions/bounds) of the environment's observation space.

Usage

env_observation_space_info(x, instance_id)

Arguments

x
An instance of class "GymClient"; this object has "remote_base" as an attribute.
instance_id
A short identifier (such as "3c657dbc") for the environment instance.

Value

A list containing "name" (such as "Discrete"), and additional dimensional info (such as "n") which varies from space to space.

Examples

Run this code
## Not run: 
# remote_base <- "http://127.0.0.1:5000"
# client <- create_GymClient(remote_base)
# env_id <- "CartPole-v0"
# instance_id <- env_create(client, env_id)
# env_observation_space_info(client, instance_id)
# ## End(Not run)

Run the code above in your browser using DataLab