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

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.

主站蜘蛛池模板: 应城市| 张家界市| 垦利县| 玉环县| 沾益县| 莒南县| 民丰县| 松江区| 鄂州市| 宝坻区| 长兴县| 资源县| 威信县| 六盘水市| 阿勒泰市| 通辽市| 梅河口市| 荣成市| 许昌县| 广州市| 德清县| 屏东县| 贵南县| 会宁县| 林芝县| 五原县| 都江堰市| 宁阳县| 正宁县| 宁津县| 新疆| 正镶白旗| 北京市| 罗江县| 饶河县| 四川省| 秦皇岛市| 庆云县| 蒲城县| 淮安市| 莆田市|