OpenAI Gym 101
OpenAI Gym is a Python-based toolkit for the research and development of reinforcement learning algorithms. OpenAI Gym provides more than 700 opensource contributed environments at the time of writing. With OpenAI, you can also create your own environments. The biggest advantage is that OpenAI provides a unified interface for working with these environments, and takes care of running the simulation while you focus on the reinforcement learning algorithms.
Note
The research paper describing OpenAI Gym is available at this link:Â http://arxiv.org/abs/1606.01540.Â
You can install OpenAI Gym using the following command:
pip3 install gym
Note
If the above command does not work, then you can find further help with installation at the following link:Â https://github.com/openai/gym#installation.Â
- Let us print the number of available environments in OpenAI Gym:
Note
You can follow along with the code in the Jupyter notebook ch-13a_Reinforcement_Learning_NN
 in the code bundle of this book.
all_env...