官术网_书友最值得收藏!

Setting up the working environment

Let's get started with setting up the working environment, including the correct versions of Python and Anaconda, and PyTorch as the main framework that is used throughout the book.

Python is the language we use to implement all reinforcement learning algorithms and techniques throughout the book. In this book, we will be using Python 3, or more specifically, 3.6 or above. If you are a Python 2 user, now is the best time for you to switch to Python 3, as Python 2 will no longer be supported after 2020. The transition is very smooth, though, so don't panic.

Anaconda is an open source Python distribution (www.anaconda.com/distribution/) for data science and machine learning. We will be using Anaconda's package manager, conda, to install Python packages, along with pip.

PyTorch (https://pytorch.org/), primarily developed by the Facebook AI Research (FAIR) Group, is a trendy machine learning library based on Torch (http://torch.ch/). Tensors in PyTorch replace NumPy's ndarrays, which provides more flexibility and compatibility with GPUs. Because of the powerful computational graphs and the simple and friendly interface, the PyTorch community is expanding on a daily basis, and it has seen heavy adoption by more and more tech giants.

Let's see how to properly set up all of these components.

主站蜘蛛池模板: 含山县| 海盐县| 乐清市| 新化县| 乐山市| 龙口市| 池州市| 彰武县| 扎囊县| 嘉义市| 临城县| 灵台县| 遵义市| 海安县| 镇沅| 越西县| 河津市| 甘孜县| 凭祥市| 塔河县| 兴安盟| 察隅县| 林芝县| 石楼县| 乐清市| 平潭县| 改则县| 斗六市| 东丰县| 沾化县| 乡城县| 佛山市| 红原县| 邛崃市| 普安县| 铁岭县| 锡林浩特市| 垫江县| 蒲城县| 普定县| 北海市|