An introduction to OpenAI Gym
We will be using OpenAI Gym to provide an environment for our agent. OpenAI Gym is an open source toolkit to develop and compare RL algorithms. It contains a variety of simulated environments that can be used to train agents and develop new RL algorithms.
The first thing to do is install OpenAI Gym. The following command will install the minimal gym
package:
pip install gym
If you want to install all (free) gym
modules, add [all]
after it:
pip install gym[all]
The MuJoCo environment requires a purchasing license. For Atari-based games, you will need to install Atari dependencies (Box2D and ROM):
pip install box2d-py
OpenAI Gym provides a variety of environments, from simple text-based to three-dimensional games. The environments supported can be grouped as follows:
- Algorithms: Contains environments that involve performing computations such as addition. While we can easily perform the computations...