Book Image

PyTorch Deep Learning Hands-On

By : Sherin Thomas, Sudhanshu Passi
Book Image

PyTorch Deep Learning Hands-On

By: Sherin Thomas, Sudhanshu Passi

Overview of this book

PyTorch Deep Learning Hands-On is a book for engineers who want a fast-paced guide to doing deep learning work with PyTorch. It is not an academic textbook and does not try to teach deep learning principles. The book will help you most if you want to get your hands dirty and put PyTorch to work quickly. PyTorch Deep Learning Hands-On shows how to implement the major deep learning architectures in PyTorch. It covers neural networks, computer vision, CNNs, natural language processing (RNN), GANs, and reinforcement learning. You will also build deep learning workflows with the PyTorch framework, migrate models built in Python to highly efficient TorchScript, and deploy to production using the most sophisticated available tools. Each chapter focuses on a different area of deep learning. Chapters start with a refresher on how the model works, before sharing the code you need to implement it in PyTorch. This book is ideal if you want to rapidly add PyTorch to your deep learning toolset.
Table of Contents (11 chapters)
10
Index

Chapter 7. Reinforcement Learning

Let's talk about the nature of learning. We aren't born into this world knowing anything. By interacting with the world, we learn about the effects of our actions. Once we have an understanding of how the world works, we can use that knowledge to make decisions that can lead us to specific goals.

In this chapter, we will formulate this approach to learning computationally using a method called reinforcement learning. It's very different to the other types of deep learning algorithms covered in this book and is a vast field on its own.

Applications of reinforcement learning range from playing games in a digital environment to governing the actions of robots in a real-life environment. It also happens to be the technique you use to train dogs and other animals. These days, reinforcement learning is being used to drive self-driving cars and is a hugely popular field.

One of the major recent breakthroughs happened when a computer...