Skip to content

Instantly share code, notes, and snippets.

@SolClover
Created October 15, 2022 10:35
Show Gist options
  • Save SolClover/eccb113aad852d6636e306ae584ecec3 to your computer and use it in GitHub Desktop.
Save SolClover/eccb113aad852d6636e306ae584ecec3 to your computer and use it in GitHub Desktop.
Show key information about the environment
# Show environment description (map) as an array
print("Environment Array: ")
print(env.desc)
# Observation and action space
state_obs_space = env.observation_space # Returns sate(observation) space of the environment.
action_space = env.action_space # Returns action space of the environment.
print("State(Observation) space:", state_obs_space)
print("Action space:", action_space)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment