- PyTorch 1.x Reinforcement Learning Cookbook
- Yuxi (Hayden) Liu
- 216字
- 2021-06-24 12:34:37
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.
- Mastering Mesos
- Oracle SOA Governance 11g Implementation
- Linux Mint System Administrator’s Beginner's Guide
- Getting Started with Containerization
- 微型計算機控制技術
- 自主研拋機器人技術
- Arduino &樂高創意機器人制作教程
- 基于32位ColdFire構建嵌入式系統
- 變頻器、軟啟動器及PLC實用技術260問
- Ruby on Rails敏捷開發最佳實踐
- Nginx高性能Web服務器詳解
- 新編計算機圖形學
- 筆記本電腦電路分析與故障診斷
- 貫通開源Web圖形與報表技術全集
- 未來學徒:讀懂人工智能飛馳時代