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

GANs

GANs are one of the major inventions of the last decade in the opinion of lots of deep learning researchers. They are inherently different from other generative networks, especially with the way that they are trained. The first paper about adversarial networks for generating data appeared in 2014, authored by Ian Goodfellow. GANs are considered as an unsupervised learning algorithm where a supervised learning algorithm learns to reason the function y'=f(x) with labeled data, y.

This type of supervised learning algorithm is inherently discriminatory, which means that it learns to model the conditional probability distribution function where it says what the probability of something is given the state of something else. For instance, what's the probability of the location of a house if the price for buying that house is $100,000? GANs generate output from random distribution and hence the change in the random input lets the output be different.

GANs get the sample...