Book description
Get a head start in the world of AI and deep learning by developing your skills with PyTorch
Key Features
- Learn how to define your own network architecture in deep learning
- Implement helpful methods to create and train a model using PyTorch syntax
- Discover how intelligent applications using features like image recognition and speech recognition really process your data
Book Description
Want to get to grips with one of the most popular machine learning libraries for deep learning? The Deep Learning with PyTorch Workshop will help you do just that, jumpstarting your knowledge of using PyTorch for deep learning even if you're starting from scratch.
It's no surprise that deep learning's popularity has risen steeply in the past few years, thanks to intelligent applications such as self-driving vehicles, chatbots, and voice-activated assistants that are making our lives easier. This book will take you inside the world of deep learning, where you'll use PyTorch to understand the complexity of neural network architectures.
The Deep Learning with PyTorch Workshop starts with an introduction to deep learning and its applications. You'll explore the syntax of PyTorch and learn how to define a network architecture and train a model. Next, you'll learn about three main neural network architectures - convolutional, artificial, and recurrent - and even solve real-world data problems using these networks. Later chapters will show you how to create a style transfer model to develop a new image from two images, before finally taking you through how RNNs store memory to solve key data issues.
By the end of this book, you'll have mastered the essential concepts, tools, and libraries of PyTorch to develop your own deep neural networks and intelligent apps.
What you will learn
- Explore the different applications of deep learning
- Understand the PyTorch approach to building neural networks
- Create and train your very own perceptron using PyTorch
- Solve regression problems using artificial neural networks (ANNs)
- Handle computer vision problems with convolutional neural networks (CNNs)
- Perform language translation tasks using recurrent neural networks (RNNs)
Who this book is for
This deep learning book is ideal for anyone who wants to create and train deep learning models using PyTorch. A solid understanding of the Python programming language and its packages will help you grasp the topics covered in the book more quickly.
Table of contents
- The Deep Learning with PyTorch Workshop
-
Preface
-
About the Book
- Audience
- About the Chapters
- Conventions
- Code Presentation
- Hardware Requirements
- Software Requirements
- Setting up Your Environment
- Installing Python on Windows and macOS
- Installing Python on Linux
- Installing pip
- Installing PyTorch
- Installing Libraries
- Opening a Jupyter Notebook
- Accessing the Code Files
-
About the Book
-
1. Introduction to Deep Learning and PyTorch
- Introduction
- Why Deep Learning?
-
Introduction to PyTorch
- GPUs in PyTorch
- What Are Tensors?
- Exercise 1.01: Creating Tensors of Different Ranks Using PyTorch
- Advantages of Using PyTorch
- Disadvantages of Using PyTorch
- Key Elements of PyTorch
- Exercise 1.02: Defining a Single-Layer Architecture
- Exercise 1.03: Training a Neural Network
- Activity 1.01: Creating a Single-Layer Neural Network
- Summary
-
2. Building Blocks of Neural Networks
- Introduction
-
Introduction to Neural Networks
- What Are Neural Networks?
- Exercise 2.01: Performing the Calculations of a Perceptron
- Multi-Layer Perceptron
- The Learning Process of a Neural Network
- Advantages and Disadvantages
- Introduction to Artificial Neural Networks
- Introduction to Convolutional Neural Networks
- Introduction to Recurrent Neural Networks
- Data Preparation
- Building a Deep Neural Network
- Summary
-
3. A Classification Problem Using DNN
- Introduction
-
Problem Definition
- Deep Learning in Banking
- Exploring the Dataset
- Data Preparation
- Building the Model
- ANNs for Classification Tasks
- A Good Architecture
- PyTorch Custom Modules
- Exercise 3.01: Defining a Model's Architecture Using Custom Modules
- Defining the Loss Function and Training the Model
- Activity 3.01: Building an ANN
- Dealing with an Underfitted or Overfitted Model
- Deploying Your Model
- Summary
-
4. Convolutional Neural Networks
- Introduction
-
Building a CNN
- Why Are CNNs Used for Image Processing?
- The Image as Input
- Applications of CNNs
- The Building Blocks of CNNs
- Exercise 4.01: Calculating the Output Shape of a Convolutional Layer
- Exercise 4.02: Calculating the Output Shape of a Set of Convolutional and Pooling Layers
- Side Note – Downloading Datasets from PyTorch
- Activity 4.01: Building a CNN for an Image Classification Problem
- Data Augmentation
- Batch Normalization
- Summary
-
5. Style Transfer
- Introduction
- Style Transfer
-
Implementation of Style Transfer Using the VGG-19 Network Architecture
- Inputs – Loading and Displaying
- Exercise 5.01: Loading and Displaying Images
- Loading the Model
- Exercise 5.02: Loading a Pre-Trained Model in PyTorch
- Extracting the Features
- Exercise 5.03: Setting Up the Feature Extraction Process
- The Optimization Algorithm, Losses, and Parameter Update
- Exercise 5.04: Creating the Target Image
- Activity 5.01: Performing Style Transfer
- Summary
- 6. Analyzing the Sequence of Data with RNNs
- Appendix
Product information
- Title: The Deep Learning with PyTorch Workshop
- Author(s):
- Release date: July 2020
- Publisher(s): Packt Publishing
- ISBN: 9781838989217
You might also like
book
The Deep Learning Workshop
Take a hands-on approach to understanding deep learning and build smart applications that can recognize images …
book
Mastering Computer Vision with TensorFlow 2.x
Apply neural network architectures to build state-of-the-art computer vision applications using the Python programming language Key …
book
Big Data Analytics and Machine Intelligence in Biomedical and Health Informatics
BIG DATA ANALYTICS AND MACHINE INTELLIGENCE IN BIOMEDICAL AND HEALTH INFORMATICS Provides coverage of developments and …
book
Python Reinforcement Learning Projects
Deploy autonomous agents in business systems using powerful Python libraries and sophisticated reinforcement learning models Key …