Setting up the working environment
Let's get started with setting up the working environment, including PyTorch as the main framework, and OpenAI Gym, the toolkit that gives you a variety of environments to develop your learning algorithms on.
Installing PyTorch
PyTorch (https://pytorch.org/) is a trendy machine learning library developed on top of Torch (http://torch.ch/) by Facebook's AI lab. It provides powerful computational graphs and high compatibility to GPUs, as well as a simple and friendly interface. PyTorch is expanding quickly in academia and it has seen heavy adoption by more and more companies. The following chart (taken from http://horace.io/pytorch-vs-tensorflow/) shows the growth of PyTorch at top machine learning conferences:
Figure 14.1: Number of PyTorch papers in top machine learning conferences
In the past year, there have been more mentions of PyTorch than TensorFlow at those conferences. Hopefully, you are motivated enough to...