What happens *inside* a neural network?

  Рет қаралды 35,916

vcubingx

vcubingx

Күн бұрын

Visuals to demonstrate how a neural network classifies a set of data. Thanks for watching!
Support me on Patreon! / vcubingx
Source Code: github.com/vivek3141/dl-visua...
Here's the course I referred to in the video. I am not affiliated with NYU.
• NYU Deep Learning SP20
Sinusoids as activation functions:
openreview.net/forum?id=Sks3z...
vsitzmann.github.io/siren/
Here's the distill.pub article:
distill.pub/2020/grand-tour/
Special thanks to Alfredo Canziani and Nikhil Maserang for reviewing the video.
And also thanks to Grant Sanderson himself for giving me some manim tips!
I've been active on twitter, follow me here!
/ vcubingx
Join my discord server!
/ discord
These animation in this video was made using 3blue1brown's library, manim:
github.com/3b1b/manim
Music is from GameChops (Route 113, Azalea Town, Ecruteak City
Follow me!
Website: vcubingx.com
Twitter: / vcubingx
Github: github.com/vivek3141
Instagram: / vcubingx
Patreon: / vcubingx
What does a Neural Network actually do? Visualizing Deep Learning, Chapter 2
0:00 Intro
0:18 Recap of Part 1
1:57 Introducing the dataset
2:52 Structure of the Neural Network we’ll be using
3:34 What is softmax?
5:52 Input space decision boundaries
6:24 Modifying the Neural Network to visualize what it’s doing
7:36 Out-of-domain boundaries
8:46 sin(x) as an activation function
9:30 Neuron planes
11:57 Softmax surfaces
13:20 MNIST Transformation
13:42 Outro

Пікірлер: 98
@lored6811
@lored6811 2 жыл бұрын
I'm sorry for you that this video didn't do so well with clicks, don't let this discourage you from making more beautiful explanations :) There will always be people having their aha-Moments through you
@mihir777
@mihir777 Жыл бұрын
Intellectual videos don't really get much views. The cat and dog videos will always satisfy the greater population, providing easy dopamine hits to the reptilian brains.
@NovaWarrior77
@NovaWarrior77 2 жыл бұрын
The prodigal son returns.
@allantouring
@allantouring 8 ай бұрын
Where's part 3? I love this series! ❤
@prometheus7387
@prometheus7387 2 жыл бұрын
Grant Junior returns
@aleksszukovskis2074
@aleksszukovskis2074 2 жыл бұрын
Bruce! It's been a whole year. you still owe me 16 contents
@DelandaBaudLacanian
@DelandaBaudLacanian 2 жыл бұрын
my mind is blown, this is so simple and elegant, thank you for taking the time to explain neural networks and linear transformations, this is going to be one of those videos I watch over and over until I really grok it!
@elidrissii
@elidrissii Жыл бұрын
Thank you for making these videos, absolute gems. People like you make KZbin worth it.
@KenanSeyidov
@KenanSeyidov Жыл бұрын
Excited for part 3!
@saidelcielo4916
@saidelcielo4916 Жыл бұрын
Once again WOW this is the best visualization of neural networks I've ever seen, and I've learned tremendously from it. Please make more videos!!
@m4sterbr0s
@m4sterbr0s 2 жыл бұрын
Awesome, a new video!! Really happy to see you making content again!!
@stevenbacon3878
@stevenbacon3878 2 жыл бұрын
Thank you for making this video, it's awesome. I look forward to seeing more of your work!
@imranyaaqub1704
@imranyaaqub1704 2 жыл бұрын
Thank you for this informative video. I was one of many waiting for part 2, but didn't get notified as I was only subscribed, and didn't know to also hit the bell notification to get an update on when part 2 was out. I suspect many people will be coming back at odd points into the future to see if part 2 has come out. Hope they enjoy it as much as I have.
@JamieSundance
@JamieSundance Жыл бұрын
This video series is fantastic, these concepts never land for me until I see visual spacial context. Keep up the great work, you are greatly appreciated!
@vtrandal
@vtrandal 2 жыл бұрын
This is a rare occasion where I am fortunate to be witnessing excellent progress in technology as it happens. Thank you!
@BlackM3sh
@BlackM3sh Жыл бұрын
I happy I managed to find this video again. 😄 I suddenly felt an urge to rewatch it. I really like the clear visuals of the video. It's a shame you have yet to come out with a part 3, though.
@sortsvane
@sortsvane 2 жыл бұрын
Hands down THE most lucid explanation of NN I've seen 💯 Sharing it with my CompSci group. Also curious to see how you'll visualise back propagation.
@IndyRider
@IndyRider Жыл бұрын
This video has done such a great job of visually breaking down a complex concept with examples!
@symbolspangaea
@symbolspangaea Жыл бұрын
I saw this video 11 months after published, and came as a gift. Thank you sooooo much!
@waynedeng9604
@waynedeng9604 2 жыл бұрын
this is the best video I’ve ever watched, I’m in tears, you’ve changed my life with your beautiful animations and soothing voice
@judo-rob5197
@judo-rob5197 2 жыл бұрын
Very nice explanations of a complicated topic. The visuals make it more intuitive.
@arnavvirmani8688
@arnavvirmani8688 2 жыл бұрын
Video makes it easy for non math folks like me to gain some semblance of an understanding of neural networks. Great job!
@asemhusein7575
@asemhusein7575 2 жыл бұрын
The words can't explain how amazing this video finally a video that clears everything Thank you
@Odisse0
@Odisse0 10 ай бұрын
big up for this outstanding work! as an fellow student of these topics, i want to thank you for the effort put there. i'm really impressed both in the script and animations. much love ❤
@ChauNguyen-jy3fk
@ChauNguyen-jy3fk 2 жыл бұрын
I've been waiting for this video for several months!
@airatvaliullin8420
@airatvaliullin8420 2 жыл бұрын
What a wonderful explanation! I need to know this for my project and each time I watch something about the NN I'm sure im getting better at understanding what's under the cover. But never have I seen such elegant way to introduce the topic. Bravo!
@vcubingx
@vcubingx 2 жыл бұрын
Thank you!
@finkelmann
@finkelmann 2 жыл бұрын
Brilliant stuff. I've watched my share of neural network videos, and this one is truly unique
@NotRexButCaesar
@NotRexButCaesar 2 жыл бұрын
Your linked material about using periodic activation functions was very interesting.
@hiewhongliang
@hiewhongliang 2 жыл бұрын
This is awesome!!! Keep posting and keep up the great work.
@usama57926
@usama57926 2 жыл бұрын
What a great explanation. Waiting for part 3
@polqb3205
@polqb3205 2 жыл бұрын
Wow, the video is sooo good, the explanations are wonderful and the animations are so beautiful, I just love it 😍😍
@my_master55
@my_master55 2 жыл бұрын
ngl, this is what is called the "high-quality content", thank you very much for your efforts 👏😍 🚀
@BooleanDisorder
@BooleanDisorder 5 ай бұрын
I might not understand much of the mathemagic terms but the visualization really helped. I'd love to mess around with a neural network and see how different things change depending on modifications. "What happens with the output if I change the network to use another activation function in this layer" type of fun
@TheBookDoctor
@TheBookDoctor 2 жыл бұрын
Wow. I've watched a lot of "how do neural networks work" videos, and this is the first one that has offered me any truly new insight in a long time. Excellent!
@vcubingx
@vcubingx 2 жыл бұрын
Thank you! I appreciate the kind words :)
@Max-fw3qy
@Max-fw3qy Жыл бұрын
Geez man, your video is very good to visualize what a nn really does! One piece of advice, if I may....after a complicated explanation or a vary loaded explanation as you did with the output of the nn, which is very complex to understand uf you know nothing about it, try to summarize it with a simple sentence, just as you did in 7:40. That was beautifully explained, bravo!👍🏻👍🏻👍🏻
@laurent-minimalisme
@laurent-minimalisme 2 жыл бұрын
Man, this video is a masterpiece! congrat!
@williamharr7338
@williamharr7338 10 ай бұрын
Excellent Video!
@hannesstark5024
@hannesstark5024 2 жыл бұрын
Awesome job!
@soumyasarkar4100
@soumyasarkar4100 2 жыл бұрын
this is some extraordinary explaination
@usama57926
@usama57926 2 жыл бұрын
Oh man! Finally 2nd part is here.....
@KukaKaz
@KukaKaz 7 ай бұрын
Amazing video ! Keep it up 👍
@mourirsilfaut6769
@mourirsilfaut6769 2 жыл бұрын
Thank you for making these videos.
@arturpodsiady7978
@arturpodsiady7978 Жыл бұрын
Great video, thank you!
@saidelcielo4916
@saidelcielo4916 Жыл бұрын
Thanks!
@mohegyux4072
@mohegyux4072 Жыл бұрын
KZbin's algorithm should be ashamed of itself !! how could this video have less than 20k views!!!!!! thanks, had multiple whoa! moments
@woddenhorse
@woddenhorse 2 жыл бұрын
Simply Awesome 🔥🔥🔥🔥
@jasdeepsinghgrover2470
@jasdeepsinghgrover2470 2 жыл бұрын
Amazing explanation!!..
@vincent2154
@vincent2154 Жыл бұрын
Really great 👍
@adriangabriel3219
@adriangabriel3219 2 жыл бұрын
Really great! Do you have a tutorial on how you created the visualizations of the different layers? Would it be possible to do that in pure python as well?
@jacobliu760
@jacobliu760 2 жыл бұрын
I enjoyed this video so much.
@vcubingx
@vcubingx 2 жыл бұрын
Thank you Jacob.
@Hopeful-zx9wk
@Hopeful-zx9wk 2 жыл бұрын
return of the king
@vcubingx
@vcubingx 2 жыл бұрын
But when will hopeful69420 return
@CesarMaglione
@CesarMaglione 2 жыл бұрын
¡Excellent! Take your like! 👍😉
@wise_math
@wise_math Жыл бұрын
Nice video. How do you make the white edge border of a scene? (like in Recap Part 1 scene)
@aaronwtr1150
@aaronwtr1150 2 жыл бұрын
Thank you for this gerat video
@LuddeWessen
@LuddeWessen 2 жыл бұрын
Really nice video. However, I think you should mention that you use a binarized (one hot) encoding of argmax and not argmax as it is commonly defined, as viewers (like me) could get confused. Otherwise an excellent video, that conveys the intuition really well! 😀
@vcubingx
@vcubingx 2 жыл бұрын
Good point, I'll include the terminology next time
@ali493beigi5
@ali493beigi5 2 жыл бұрын
Great! Can you explain me how you produce these animations? Is there any software you have used?
@vcubingx
@vcubingx 2 жыл бұрын
I use manim
@praveenrajab0622
@praveenrajab0622 2 жыл бұрын
In 10:49 , aren't the x and y coordinates of the plot is the output values of the second last layer of the nn?
@MadlipzMarathi
@MadlipzMarathi 2 жыл бұрын
Finally
@Anujkumar-my1wi
@Anujkumar-my1wi 2 жыл бұрын
I want to ask that as neural net approximates a function over a particular domain interval ,what'll happen if it gets input outside the domain when testing?
@pi-meson7677
@pi-meson7677 2 жыл бұрын
When you come back after 2¹⁰ years
@alexcheng2498
@alexcheng2498 2 жыл бұрын
I've missed this.
@RohanDasariMinho
@RohanDasariMinho 2 жыл бұрын
Goat cubing x
@skifast_takechances
@skifast_takechances Жыл бұрын
banger
@jamietea1072
@jamietea1072 Жыл бұрын
Intro part 1 Funny Galaxy part 2 Swastika part 3 Ending of Evangelion
@anwarulbashirshuaib5673
@anwarulbashirshuaib5673 2 жыл бұрын
holy shit!
@ko-prometheus
@ko-prometheus 11 ай бұрын
Can I use your mathematical apparatus, to investigate the physical processes of Metaphysics?? I am looking for a mathematical apparatus capable of working with metaphysical phenomena, i.e. metamathematics!!
@gdash6925
@gdash6925 2 жыл бұрын
where were you at 8:50? in University?
@dann_y5319
@dann_y5319 15 күн бұрын
9:13 grid
@dewibatista5752
@dewibatista5752 2 ай бұрын
PART 3 PART 3 PART 3
@TheRmbomo
@TheRmbomo 2 жыл бұрын
5:25 When describing that the sum of the array resulting from softmax equals 1, I think the visual is missing that communication too. Such as stacking all of the lines on top of each other, up to a value of 1 or 100%. Don't just rely on words. Otherwise great video, thank you.
@anshul.infinity
@anshul.infinity 2 жыл бұрын
I am trying to visualise how the neural network transformed the input space into linearly separable space layer by layer in a new basic data set.
@enisten
@enisten 2 жыл бұрын
3:47 Did you mean a range of i̶n̶p̶u̶t̶s̶ outputs?
@nit235
@nit235 2 жыл бұрын
Very informative video Thank you a lot Do you have any suggestions for me, I want to learn manim and make videos like how ML algorithms work, their pros and cons cases? Or, if you have a manim learners classes, then I can directly enroll to learn.
@PapaFlammy69
@PapaFlammy69 2 жыл бұрын
wb :)
@vcubingx
@vcubingx 2 жыл бұрын
Thanks:)
@nathannguyen2041
@nathannguyen2041 2 жыл бұрын
How would a neural network handle categorical variables?
@vcubingx
@vcubingx 2 жыл бұрын
As inputs? One way is to have each input be a vector of dimension n, where n is the number of categories. Then, for each input, assign the category index 1, and the rest 0. For example, if my input was a 4-category variable of either cat, dog, wolf, tiger. Then the input cat could be {1, 0, 0, 0}. See "one-hot encoding" if you're interested
@vcubingx
@vcubingx 2 жыл бұрын
There are plenty of other ways. In the case of NLP (which is my domain atm), we want to be able to encode tokens (some sequence of characters) into input vectors. An older method to do this is word2vec, which converts words to vectors based off context. This allows us to assign each word to some input vector, and we can pass along each vector as inputs to an NN. These days though, modern neural language models (GPT3, etc.) have sophisticated embeddings and word2vec has largely fallen out of grace
@omridrori3286
@omridrori3286 Жыл бұрын
What about part 3!!!
@abrahamgomez653
@abrahamgomez653 Ай бұрын
Chaos happens
@OrenLikes
@OrenLikes 5 ай бұрын
w12 reads the first weight of the second input? this is confusing! should be w21 => from input x2, we look at w1 (that, obviously, goes to output 1)!
@TimmacTR
@TimmacTR 2 жыл бұрын
What the.....
@jayantnema9610
@jayantnema9610 2 жыл бұрын
hey don't you think saying "this is what NN does under the hood" an overshoot? I mean all the popular literature in textbooks and all ML community also claims that it does exactly that but if this was truly the case, if it was behaving that logicallh then adverserial attacks would have been impossible. But we all know that one pixel attack and noise based attacks are quite frequently achievable by GANs. The interpretation of layers extract features from the input is true provided features are not the human interpretable shapes or patterns, to call them so leads to an error. Because one pixel attacks and noise based attacks do not affect the feature as such, the horse is still horse if you change twentyish pixels out of a 1000.. but the NN suddenly starts saying it is a dog with 99% confidence. If it were really extracting features as in patterns as humans understand it would never even make that error. Humans have 100% accuracy and immunity against some twenty pixels changing out of a 1000 because we extract patterns. NN does not, if it did it should also be immune. But it is not. This means that the popular understanding is still incomplete and it would be wrong to say anything on how NN works under the hood. Since you can find multiple completely different sets of weights and still get excellent classification accuracy. This means the NN is interpreting the spiral in its own way and not human style 5 zone with nonlinear boundary. Because human style there is only 1 interpretation logically possible. That fails to explain how we can get multiple sets of weights, not at all close or alike, still giving solid accuracy
@revimfadli4666
@revimfadli4666 3 ай бұрын
But salty redditors say this isn't how the thing works at all (they deleted their comments in shame after I asked for elaboration)
@vcubingx
@vcubingx 3 ай бұрын
Haha, sorry but what redditors? What post are you talking about. Kinda curious
@MrMehrd
@MrMehrd 11 ай бұрын
Hm
@jamesjones8487
@jamesjones8487 Жыл бұрын
I finally realize that I am a useless stupid fool.
@usama57926
@usama57926 2 жыл бұрын
When 3rd party is coming
@OrenLikes
@OrenLikes 5 ай бұрын
you said "softmax is not a version of argmax" and then you say "softmax is a smoother version of argmax" - make up your mind!
@AegeanEge35
@AegeanEge35 2 ай бұрын
Thanks!
@sythatsokmontrey8879
@sythatsokmontrey8879 2 жыл бұрын
Finally
@meguellatiyounes8659
@meguellatiyounes8659 2 жыл бұрын
Finally
The Neural Network, A Visual Introduction
13:52
vcubingx
Рет қаралды 141 М.
But what is a convolution?
23:01
3Blue1Brown
Рет қаралды 2,5 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 122 МЛН
小女孩把路人当成离世的妈妈,太感人了.#short #angel #clown
00:53
1❤️#thankyou #shorts
00:21
あみか部
Рет қаралды 88 МЛН
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 20 МЛН
I Made a Neural Network with just Redstone!
17:23
mattbatwings
Рет қаралды 640 М.
The secret π in the Mandelbrot Set
12:21
vcubingx
Рет қаралды 26 М.
A Neural Network Primer
19:14
Steve Brunton
Рет қаралды 35 М.
Snake learns with NEUROEVOLUTION (implementing NEAT from scratch in C++)
28:08
How are memories stored in neural networks? | The Hopfield Network #SoME2
15:14
What Are Neural Networks Even Doing? (Manifold Hypothesis)
13:20
The Painter's Paradox
8:01
vcubingx
Рет қаралды 30 М.
Why do Convolutional Neural Networks work so well?
16:30
Algorithmic Simplicity
Рет қаралды 40 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 122 МЛН