MENU

Fun & Interesting

Build a Neural Network with Pytorch - PART 1

Python Simplified 35,907 lượt xem 4 years ago
Video Not Working? Fix It Now

In this lesson, I will demonstrate how to build your own neural network with Pytorch and word embedding!
This network is designed to create a story based-off several books that I've trained it on, and therefore I named it StoryTeller.
In this video, you will learn how to manually batch data, create a neural network class, and define the structure of your model.
I'll explain my trail of thought and the considerations when building such a model, and I'll also introduce you to Pytorch, which is a very powerful tool for Machine Learning and AI.
This is just an introduction, as I didn't include validation or pre-processing of our dataset, which are also very important steps that I've skipped to save some time (YES, it takes more than 35 minutes to build a proper model!)
I highly recommend downloading/copying the starter notebook from my Google Drive, and proceeding to Part 2 of this lesson once you're done structuring your model.
#pytorch #python #neuralnetwork #ai

⭐Train a Neural Network - StoryTeller PART 2 ⭐
https://youtu.be/GTyTG3XzPq8

********************************************************************************
LEARN ABOUT BASIC AI CONCEPTS - FOR MACHINE LEARNING BEGINNERS:
********************************************************************************

⭐My Perceptron Tutorial - a single node in a Neural Network ⭐
https://youtu.be/-KLnurhX-Pg

⭐My Error Function Tutorial - Binary Cross-Entropy Loss ⭐
https://youtu.be/EJRFP3WmS6Q

Starter Notebook and Files:
https://drive.google.com/drive/folders/1J9Am97Kyeviofr7wEDSpCiv3bSxZ60Tg?usp=sharing

Timestamps:
0:00 - Introduction
1:41 - Convert dataset from strings to integers
3:00 - Word to Index
4:58 - Batch Data / Train Data Structure
7:47 - Neural Network Structure
8:44 - __init__ Function
11:32 - Forward Function
14:52 - Print Model Structure
15:47 - See you in part 2!

Connect on LinkedIn:
https://www.linkedin.com/in/mariyasha888/

Follow me on Facebook:
https://www.facebook.com/MariyaSha888/

Follow me on Instagram:
https://www.instagram.com/mariyasha888/

Check out my Github:
https://github.com/MariyaSha

Comment