Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Train a PyTorch Neural Network Step-by-Step - PyTorch Deep Learning

Samuel Chan via YouTube

Overview

Learn to build and train a PyTorch neural network for image classification in this comprehensive tutorial video. Begin with a mental model of the training process, then dive into PyTorch imports and hyperparameter setup. Explore how to prepare training and test data using the FashionMNIST dataset. Create a neural network architecture using PyTorch's nn module, and understand loss functions, cross-entropy loss, and optimizers. Set up a complete training loop for forward and backward passes, achieving 85% test accuracy on FashionMNIST. Visualize the computation graph using pytorchviz, and learn how to save and load PyTorch models. Perfect for those with basic PyTorch knowledge looking to deepen their understanding of neural network training and implementation.

Syllabus

Mental model: Training a neural network in PyTorch
PyTorch imports and hyperparemeters
Training and test data for our FashionMNIST classification
Creating our Neural Network using PyTorch's nn module
Loss function, Cross-Entropy Loss and Optimizers
Setting up a training loop for the forward pass + backward pass
Visualize our computation graph with pytorchviz
Saving and loading pytorch models

Taught by

Samuel Chan

Reviews

Start your review of Train a PyTorch Neural Network Step-by-Step - PyTorch Deep Learning

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.