OpenAI Gym Setup

https://github.com/openai/gym

Basics

2 basic concepts:
1) the environment: the outside world;
2) the agent: the algorithm you are writing.
– The agent sends actions to the environment, and the environment replies with observations and rewards (a score).

The core gym interface: Env
https://github.com/openai/gym/blob/master/gym/core.py

To confirm Python’s version.

To confirm Python’s location from Terminal.

Install Atari environments.

Prepare Python files like following examples and execute it from Terminal.

Cart Pole

Space Invaders

Ms Pacman

GIF Animation

To make a GIF animation.

http://nbviewer.jupyter.org/github/patrickmineault/xcorr-notebooks/blob/master/Render%20OpenAI%20gym%20as%20GIF.ipynb

ページトップへ