As we mentioned previously, OpenAI is one of the main research companies that is working on RL. They released a set of environments to test different algorithms under one interface. You can find out more information about this at https://gym.openai.com/.
Installing it on macOS or Linux it's quite straightforward; you can type in the following command:
pip install gym
At the time of writing this book, it's more complicated to install on Windows. To do so, you can perform the following steps:
- Install VcXsrv Windows X Server from vcXsrv.
- Run bash.
- Install all the dependencies listed at https://github.com/openai/gym/#installing-everything by using the following command:
pip install gym
- After rebooting, invoke VcXsrv.
- Run the following command:
export DISPLAY=:0
Now, it should be possible to run a very simple algorithm, which is just repeating...