Skip to main content

Explore OpenAI Gym environments.

Project description

Build Status Coverage Status Codacy Badge

gym-demo

Explore OpenAI Gym environments

This package provides the gym-demo command, which allows you to explore the various Open AI gym environments installed on your system.

This allows you to get a quick overview of an environment before you start working on it. You will get information about the environments observation space, action space as well as the rewards you can expect to get and other available information.

gym-demo on YouTube

Installation

You can install OpenAI Gym and gym-demo using pip:

$ pip install gym[atari]
$ pip install gym-demo

Usage

Use gym-demo --help to display usage information and a list of environments installed in your Gym.

$ gym-demo --help

Start a demo of an environment to get information about its observation and action space and observe the rewards an agent gets during a random run.

$ gym-demo SpaceInvaders-ram-v4
Environment: SpaceInvaders-ram-v4

Observation Space: Box(128,)
Low values:
[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
High values:
[255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
 255 255]

Action Space: Discrete(6)
Action meanings: ['NOOP', 'FIRE', 'RIGHT', 'LEFT', 'RIGHTFIRE', 'LEFTFIRE']


Running environment demonstration...
Unique environment information is output to standard out:
Reward: 0.0, Done: False, Info: {'ale.lives': 3}
Reward: 5.0, Done: False, Info: {'ale.lives': 3}
Reward: 0.0, Done: False, Info: {'ale.lives': 3}
Reward: 10.0, Done: False, Info: {'ale.lives': 3}
Reward: 0.0, Done: False, Info: {'ale.lives': 3}
Reward: 15.0, Done: False, Info: {'ale.lives': 3}
Reward: 0.0, Done: False, Info: {'ale.lives': 3}
Reward: 20.0, Done: False, Info: {'ale.lives': 3}
Reward: 0.0, Done: False, Info: {'ale.lives': 3}
Reward: 25.0, Done: False, Info: {'ale.lives': 3}
Reward: 0.0, Done: False, Info: {'ale.lives': 3}
Reward: 0.0, Done: False, Info: {'ale.lives': 2}
Reward: 30.0, Done: False, Info: {'ale.lives': 2}
Reward: 0.0, Done: False, Info: {'ale.lives': 2}
Reward: 0.0, Done: False, Info: {'ale.lives': 1}
Reward: 5.0, Done: False, Info: {'ale.lives': 1}
Reward: 0.0, Done: False, Info: {'ale.lives': 1}
Reward: 10.0, Done: False, Info: {'ale.lives': 1}
Reward: 0.0, Done: False, Info: {'ale.lives': 1}
Reward: 15.0, Done: False, Info: {'ale.lives': 1}
Reward: 0.0, Done: False, Info: {'ale.lives': 1}
Reward: 20.0, Done: False, Info: {'ale.lives': 1}
Reward: 0.0, Done: False, Info: {'ale.lives': 1}
Reward: 0.0, Done: True, Info: {'ale.lives': 0}

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gym_demo-0.2.0-py3-none-any.whl (6.3 kB) Copy SHA256 hash SHA256 Wheel py3
gym-demo-0.2.0.tar.gz (5.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page