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

YouTube

Training MNIST Perceptron with PyTorch - Lab 3.4

Donato Capitella via YouTube

Overview

Learn to train a neural network model for recognizing MNIST handwritten digits in this 41-minute hands-on lab video. Master PyTorch fundamentals including dataset handling, one-hot encoding of labels, and proper data splitting between training, validation, and testing sets. Explore the implementation of DataLoaders for mini-batch processing, construct effective training loops with loss data collection and validation, and visualize learning progress through loss curves. Gain practical experience in saving and loading models for inference, and understand the differences between incremental and full-batch updates. Access the provided Colab notebook to follow along with the step-by-step implementation, from initial setup through model deployment. Enhance your deep learning skills by implementing gradient descent and mini-batch updates in a real-world computer vision application.

Syllabus

- Recap
- PyTorch Datasets, One-Hot Encoding of Labels
- Data Split Training, Validation, Testing
- PyTorch DataLoaders and Mini Batches
- The Training Loop for a Neural Network
- Improved Training Loop Loss Data Collection & Validation
- Running the Training Loop
- Plotting the Loss Curves
- Saving and Loading PyTorch Models for Inference
- Incremental and Full-Batch Updates

Taught by

Donato Capitella

Reviews

Start your review of Training MNIST Perceptron with PyTorch - Lab 3.4

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.