The StatQuest Introduction to PyTorch @statquest
The StatQuest Introduction to PyTorch  @statquest
Uploaded April 2022 | Updated September 2026, 1 week ago
PyTorch is one of the most popular tools for making Neural Networks. This StatQuest walks you through a simple example of how to use PyTorch one step at a time. By the end of this StatQuest, you'll know how to create a new neural network from scratch, make predictions and graph the output, and optimize a parameter using backpropagation. BAM!!!

To learn more about Lightning: lightning.ai

The code demonstrated this video can be downloaded here:
lightning.ai/lightning-ai/studios/statquest-introduction-to-coding-neural-networks-with-pytorch?view=public§ion=all

This StatQuest assumes that you are already familiar with...
Neural Networks: youtu.be/CqOfi41LfDw
Backpropagation: youtu.be/IN2XmBhILt4
The ReLU Activation Function: youtu.be/68BZ5f7P94E
Tensors: youtu.be/L35fFDpwIM4

To install PyTorch see: pytorch.org/get-started/locally
To install matplotlib, see: matplotlib.org/stable/users/getting_started
To install seaborn, see: seaborn.pydata.org/installing.html

For a complete index of all the StatQuest videos, check out:
statquest.org/video-index

If you'd like to support StatQuest, please consider...

Patreon: patreon.com/statquest
...or...
YouTube Membership: youtube.com/channel/UCtYLUTtgS3k1Fg4y5tAhLbw/join

...buying one of my books, a study guide, a t-shirt or hoodie, or a song from the StatQuest store...
statquest.org/statquest-store

...or just donating to StatQuest!
paypal.me/statquest

Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
twitter.com/joshuastarmer

0:00 Awesome song and introduction
1:38 Coding preliminaries
2:15 Creating a neural network in PyTorch
7:54 Graphing the neural network's output
10:47 Optimizing a parameter with backpropagation

#StatQuest #NeuralNetworks #PyTorch
The StatQuest Introduction to PyTorchLittle Red FiatEncoder-Only Transformers (like BERT) for RAG, Clearly Explained!!!Backpropagation Details Pt. 2: Going bonkers with The Chain RuleXGBoost in Python from Start to FinishA Gentle Introduction to Machine LearningGaussian Naive Bayes, Clearly Explained!!!p-hacking: What it is and how to avoid it!Neural Networks Part 8: Image Classification with Convolutional Neural Networks (CNNs)SaturdayNeural Networks Pt. 2: Backpropagation Main IdeasThe Binomial Distribution and Test, Clearly Explained!!!
StatQuest with Josh Starmer |

The StatQuest Introduction to PyTorch

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER