3.5: Mathematics of Gradient Descent - Intelligence and Learning

  Рет қаралды 244,210

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 486
@vcrmartinez
@vcrmartinez 6 жыл бұрын
Hey, I'm a Brazilian student/software engineer studying Rec Systems and ML. Tons of articles, papers and videos did not do what you've just done. Now everything is crystal clear, thanks for the explanation.
@JulietNovember9
@JulietNovember9 5 жыл бұрын
Going through Andrew Ng's Coursera... got stuck on how the Cost Function derivatives/partial derivatives are obtained.... 11:00 and on... Oh... MY... GOSH... this is GOLD!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Thank you so much!
@calluma8472
@calluma8472 5 жыл бұрын
Same. Haven't done calculus since 1999, this helps a lot.
@seamusforever7081
@seamusforever7081 5 жыл бұрын
Same here. I was so confused.
@tharukabalasooriya3269
@tharukabalasooriya3269 5 жыл бұрын
@@calluma8472 gosh, how old are you?
@abirchakraborty624
@abirchakraborty624 5 жыл бұрын
Spot on ... This is a small bridge for the Andrew Ng's Coursera course . Specially the explanation how chain rule and power rule are coming into picture here, really helps.
@pemadechen9901
@pemadechen9901 4 жыл бұрын
found my coursera classmate
@stevenrhodes2818
@stevenrhodes2818 6 жыл бұрын
OMG! Thank you! My power went out and I figured I would try to learn gradient descent on my phone.. This is the first time it's made sense.. All those experienced mathmaticians suck at being teachers, making it sound all crazy complicated and shit. You sir are amazing.
@fernandoerazo8135
@fernandoerazo8135 5 ай бұрын
My wifi just went out and instead of using it as an excuse, I am using my laggy phone to try and learn .
@iamgrinhausgases
@iamgrinhausgases 7 ай бұрын
Just wanted to say that this is easily the best and clearest explanation of gradient descent I've come across, on the web and in the books I've read. Thank you, sir.
@nikitachoudhary3878
@nikitachoudhary3878 5 жыл бұрын
after read 20-30 articles , after watched 20+ videos, i watched best video ever of Gradient Descent. i falling love with you. best explanation.
@ajitkumar15
@ajitkumar15 6 жыл бұрын
Thank you so much.After failing my exam on Machine learning I was searching videos on Gradient Descent topic.After watching so many videos I landed on this page.By far this is the best video.You are simple great teacher because you have understood the topic very well that is why you are able to explain in really simple way.. Thanks a million !!!!!
@alishaaluu
@alishaaluu 5 жыл бұрын
Usually, math makes me cry but while watching this I am learning and laughing at the same time. How cool is that? Lol. All thanks to you, bro! Keep the good work on. Cheers!!
@SaurabhSinghAus
@SaurabhSinghAus 5 жыл бұрын
Coming here from Andrew Ng's ML course. Got confused with Gradient Descent. This is Gold. You explained Linear regression so well.
@CamdenBloke
@CamdenBloke 6 жыл бұрын
I'm studying up for an interview to transfer to the Machine Learning department Wednesday. This is enormously helpful in providing an actual mathematical (not just conceptual) understanding of gradient descent. Thanks!
@TimHulse
@TimHulse 4 жыл бұрын
You nailed it sir! I was confused when partial dJ/dm = 2*Error at one moment then suddenly had partial dError/dm glued onto it, but your clarification at point 19:15 clarified it. Please keep making videos!
@umessi10
@umessi10 7 жыл бұрын
Thank you so much for this. One of the best explanation of gradient descent on youtube. So far I'm loving your Intelligence and Learning series. Think I'm gonna binge watch the entire series now.
@TheSocialDrone
@TheSocialDrone 4 жыл бұрын
I had searched on this subject and watched several other videos before I could find this amazing video on the topic; I am more than happy that I am now able to explain this concept to anyone - now it is so much clear, thank you sir!
@shivamkaushik6637
@shivamkaushik6637 6 жыл бұрын
It was teacher's day yesterday, here in India. And today I have got this amazing teacher. Thank You
@badcode3976
@badcode3976 4 жыл бұрын
I have seen some of your videos to get some concepts that I didn't get the first time on my ML class and I'm truly convinced that these are the best tutorials on KZbin about ML, you make every concept so simple to understand and funny, at the same time. Thanks a lot!!! Keep doing this great content!!!
@matheuscorrea3277
@matheuscorrea3277 4 жыл бұрын
I searched for a video like this for a long time, and the only one I could clearly understood was yours. thank you so much and congrats for the explanation
@watchnarutoshippuden3228
@watchnarutoshippuden3228 6 жыл бұрын
Your videos are the only calculus and ML videos I can understand, you are the best! I just subbed to you; 'minimum' is singular and 'minima' is plural.
@r.d.machinery3749
@r.d.machinery3749 5 жыл бұрын
This is a clearer explanation than Professor Ng's explanation in his machine learning video series. Ng denotes m and b as theta0 and theta1. He also reverses the terms in his line equation which confuses the Hell out of everybody. In addition, he doesn't take you through how the partial derivative is worked out and he doesn't show the code. A great explanation in only 22 minutes.
@lggood8375
@lggood8375 4 жыл бұрын
Thanks for doing this within the 20 minutes you made it clear. Than the many hours I have watched and read articles others have made and were totally confusing. keep doing this... you made me unafraid of all the math.
@simaosoares165
@simaosoares165 7 жыл бұрын
You did it fantasticly! These are concepts that I know well already but find them difficult to explain, so I'll recommend your videos when pure IT guys (and not so educated audiences) ask me about the internals of the ML algos that I use.
@cuteworld9310
@cuteworld9310 3 жыл бұрын
Amazing esplanation, easy enough for a high school student to learn. Amazing how simple you made this complex concept. You sir are a genius!
@smrazaabidi1495
@smrazaabidi1495 7 жыл бұрын
Really awesome, what a elegant style of delivering the concepts, mind boggling. I wish & dream i should work and get education under his supervision. Moreover, gestures, tone, humor was extra extra outstanding, i'm speechless. :). I must say that it is the best ever explanation of gradient descent I've seen so far. Thanks a lot.
@BinuVADAT
@BinuVADAT 6 жыл бұрын
You went in to details and explained the concept. Loved the way of your fun-filled teaching. Thank you !
@rupambanerjee3
@rupambanerjee3 5 жыл бұрын
This is the best gradient descent video I have ever seen! Great work!
@-long-
@-long- 6 жыл бұрын
I never saw any tutor who put so much emotion in the video like you lol Excellent channel! Thanks so much
@paedrufernando2351
@paedrufernando2351 6 жыл бұрын
you deserve 200 million subscribers.. more than that your personality is really great!!!
@timt.4040
@timt.4040 7 жыл бұрын
Was looking for an accessible explanation of gradient descent, and this was by far the best one I found--thanks!
@azr_sd
@azr_sd 5 жыл бұрын
Daniel I have been following you since you had 2000 subs. I always enjoyed your videos man. I started learning Deep Learning on my own and got stuck at understanding Gradient descent and I know it is the back bone of Ml and DL I want to know it deeply. I have watched around 3 videos before this and your video just explains it beautifully. Thanks for this video it helped me alot. Please keep doing these kind of videos which explains the math behind these ML and DL algorithms and again Thank you for your videos. :) Iam gonna follow you more and more from now. If it's possible try to make an awesome course on Udemy with math and programming of ML and DL . Thank you again.
@alexmisto423
@alexmisto423 5 жыл бұрын
After watching this i finally figured out the calculus behind back propagation. Thank you! BIG LIKE
@feliciafryer3271
@feliciafryer3271 7 жыл бұрын
Thank you!!! I’m a computer science graduate student and trying to understand gradient descent. This video is awesome, can’t wait to watch more of your videos.
@LudwigvanBeethoven2
@LudwigvanBeethoven2 6 жыл бұрын
You are so engaging that turns this boring math to something actually interesting.. thank you so much
@8eck
@8eck 4 жыл бұрын
3Blue1Brown's was hard for me, your explanations are waaay better.
@via_domus
@via_domus 6 жыл бұрын
you're a very good teacher, a bit crazy though lol
@Dennis4Videos
@Dennis4Videos 4 жыл бұрын
The great kind of crazy tho!
@anusha8085
@anusha8085 3 жыл бұрын
@@Dennis4Videos yes!
@JotaFaD
@JotaFaD 7 жыл бұрын
A great youtuber recommending another one! Although I know Calculus from college, I think you did a great job explaining some of the rules. Keep it up Daniel.
@abirchakraborty624
@abirchakraborty624 5 жыл бұрын
Spot on ... This is a small (but a very important ) bridge for the Andrew Ng's Coursera course . Specially the explanation how chain rule and power rule are coming into picture here, really helps.
@anannyapal9939
@anannyapal9939 6 жыл бұрын
I was literally so frustrated with these things meesing up my head.... thank you sir for helping me to survive....you are just fanstastic🙏🙏
7 жыл бұрын
I can not believe this video aired just when i needed it, that you so much!
@swatigautam9802
@swatigautam9802 6 жыл бұрын
You're videos are entertaining and informative at the same time . Love it!
@binilg
@binilg 7 жыл бұрын
Man, you are super!! I had a hard time understanding the mathematics of gradient descent and you made it very easy. Thank u
@shantanu991
@shantanu991 6 жыл бұрын
I think, you made it so simple. I was looking for a proper explanation of this formula. Liked. Subscribed.
@spacedustpi
@spacedustpi 6 жыл бұрын
This was the best tutorial on this subject that I've found, thank you for this too!
@Ryeback101
@Ryeback101 5 жыл бұрын
Excellent videos. I just went through the playlist and they explain the concepts really well. You sir are a hero!!
@praveenharris6170
@praveenharris6170 6 жыл бұрын
I cannot describe how useful this was to me! Thank you!
@TheBestcommentor
@TheBestcommentor 5 жыл бұрын
I've been studying this subject for a couple months in my final semester of college, and for reason, the connectiom between the loss function and the parabola just made it all click
@adacristina3763
@adacristina3763 6 жыл бұрын
Amazing! The best explanation so far
@satyaNeelamraju7
@satyaNeelamraju7 7 жыл бұрын
An excellent video.. The best video in the internet for Gradient Descent Algorithm. Thanku so much :) ... Keep posting like this
@ryanmccauley211
@ryanmccauley211 7 жыл бұрын
After watching a ton of videos I finally understand it thanks to you. Thank you so much!
@samyakjain7300
@samyakjain7300 5 жыл бұрын
A beautiful mathematical explanation of Gradient Descent! Way to go man...
@rupalagrawal3534
@rupalagrawal3534 5 жыл бұрын
its a great video.A simple and easy language is used to explain every concept.Great work!!
@life_outdoor9349
@life_outdoor9349 6 жыл бұрын
One of the best video tutorial I came across !!
@TheWeepingCorpse
@TheWeepingCorpse 7 жыл бұрын
thank you for everything you do. I'm a c++ guy but your videos are very interesting.
@thecodersexperience
@thecodersexperience 7 жыл бұрын
hey can u tell me best place to learn c++
@syedbaryalay5849
@syedbaryalay5849 6 жыл бұрын
plus i would not jump into c++ as my first langauge, try learn an easy langauge and then start with c++. plus you need to be sure what are you gonna c++ for.
@CamdenBloke
@CamdenBloke 6 жыл бұрын
Deitel and Deitel's book.
@douloureuxcrouton5780
@douloureuxcrouton5780 6 жыл бұрын
gibson If his goal is to only learn C++, then learning C first is unnecessary. I would even argue it is a big mistake.
@prachikhandelwal2259
@prachikhandelwal2259 5 жыл бұрын
I wish I had a teacher like you. You are amazing sir I think it doesn't matter whatever are you studying but your teacher has the power to make the concept Easy or Difficult. And you are the one who makes everything extremely easy! and Yeah you are damn funny.
@boemioofworld
@boemioofworld 7 жыл бұрын
amazing explanation! One of the best explanation in the whole youtube IMO
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Glad to hear, thank you!
@idrisalhajiadamu7590
@idrisalhajiadamu7590 2 жыл бұрын
@@TheCodingTrain thanks for the explanation. I couldn't find the next value where you explained batch gradient descend.
@hamadaparis3556
@hamadaparis3556 4 жыл бұрын
this video demystified everything of the previous one, thank you so much
@michelaka6836
@michelaka6836 7 жыл бұрын
Superb break down of this often miss-explained concept.!!!! A+
@georgyandreev7469
@georgyandreev7469 4 жыл бұрын
Man that’s awesome. Being Russian I’ve understood every single thing. Keep up!
@99chintu
@99chintu 6 жыл бұрын
That is one of the best explanations I saw on the youtube..Thanks a lot..
@Kidkromechan
@Kidkromechan 6 жыл бұрын
This is EXACTLY what i had been searching for the past week pfft.. Thank you Sir ^_^
@mikelosei382
@mikelosei382 3 жыл бұрын
very, very, very helpful!!! I'm in grade 12 and was researching how exactly calculus could be applied to com sci, and this was a life saver! I had no idea what I was doing before this XD Thankss
@TheCodingTrain
@TheCodingTrain 3 жыл бұрын
So glad to hear thanks for the nice comment!
@chandimaindatissa6562
@chandimaindatissa6562 6 жыл бұрын
Simple and easy to understand. Thanks for sharing other important links. Well done!!
@jebastinkoilraj1951
@jebastinkoilraj1951 5 жыл бұрын
OHH man.. you're one hell of a teacher... Loved it
@user-xn4yu5rn9q
@user-xn4yu5rn9q 5 жыл бұрын
At first I thought this is BS, now I’m so thankful
@lightningblade9347
@lightningblade9347 6 жыл бұрын
Instant subscription, I adore the passion you have for what you do :) .
@pramodkhatiwada6189
@pramodkhatiwada6189 6 жыл бұрын
It's awesome, i understand the concept of error minimizing and i jump over here to comment.
@danielkashkett7040
@danielkashkett7040 4 жыл бұрын
This really helped me understand the MSE derivative. Great job!
@Raghad-mz8el
@Raghad-mz8el 6 жыл бұрын
thank you for explaining this. and even better than what my professor did in multiple lectures.
@debasishhazra3222
@debasishhazra3222 4 жыл бұрын
wonderful way of teaching and just fantastic video. Just Loved it Man...!!!
@olicmoon
@olicmoon 6 жыл бұрын
it's crystal clear even for a person like me lacking understanding of calculus
@cimmik
@cimmik 5 жыл бұрын
Thank you so much. Finally I found an explanation that I could undestand. Good job, Daniel :D
@aGh-rw7dd
@aGh-rw7dd 7 жыл бұрын
No worries I understood this lecture and appreciate it. I have studied Calculus 1 &2 in my high school
@madhumitamenon7757
@madhumitamenon7757 5 жыл бұрын
Thank you for making this look so simple!! You are an amazing teacher.!!
@snackbob100
@snackbob100 4 жыл бұрын
this video is fantastic, you are a very talented teacher
@annperera6352
@annperera6352 3 жыл бұрын
Thank you Sir.This teaching gained you a subscriber
@divyagulakavarapu9614
@divyagulakavarapu9614 5 жыл бұрын
Nice one. I actually had a doubt in GD, but watching your video I think I'm clear a bit.
@Suigeneris44
@Suigeneris44 6 жыл бұрын
You're an amazing teacher! I wish I had a Math teacher like you!
@crehenge2386
@crehenge2386 7 жыл бұрын
it's interesting how different youtube channels become different classes^^ Khan gives you allt the calculus you could ever want if you're a beginner
@mathhack8647
@mathhack8647 2 жыл бұрын
I lov this. " I tried again " Love this ,
@tanwirzaman
@tanwirzaman 6 жыл бұрын
One of the best explanations of GD
@ho9462
@ho9462 6 жыл бұрын
Best explanation ever in Gradient Descent.
@realcygnus
@realcygnus 7 жыл бұрын
superb ! as always. Knowledge of the more advanced concepts/techniques, especially higher level maths/abstractions etc. is primarily, precisely what separates the boys from the men / the script kiddies from software engineers etc. fear it NOT ! he plays the part so well mostly as a great teaching strategy/angle so as to reach as many as possible & to make them feel they aren't alone. Even if he really doesn't like it. I'd like to think its mostly an act anyway. & the Oscar goes to: Dan Shiffman ! He do knows his shiz though ! these vids have been priceless to me. thanks ! can't wait for the rest of Neural Networks
@tejasdhagawkar1468
@tejasdhagawkar1468 6 жыл бұрын
Take a bow!! thats the best explanation of gradient descent!!
@AliAzG
@AliAzG 7 жыл бұрын
The best explanation of gradient decent! Thank you very much.
@philips5130
@philips5130 3 жыл бұрын
I love your energy! Nice explanation btw
@adnanahmed316
@adnanahmed316 6 жыл бұрын
Wow! Thanks! It would be so fun for people who work with you. May Allah bless you.
@shadmankudchikar6978
@shadmankudchikar6978 7 жыл бұрын
awesome u really gave different way to look gd will love to see more ML videos by you. Awesome work bro!
@gajuahmed4426
@gajuahmed4426 4 жыл бұрын
Love the way you try to teach us. Take love man
@bosepukur
@bosepukur 7 жыл бұрын
very energetic presentaion ...loved it
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Thank you!
@michaelstopa1774
@michaelstopa1774 4 жыл бұрын
Dude, you are completely mad. But in the most noble sense of this word;)! Fantastic way of explaining an actually quite complex piece of math. And it's very funny too;). Congrats and hats off. You're an excellent educator.
@AdityaSingh-lf7oe
@AdityaSingh-lf7oe 4 жыл бұрын
Thank u so much!!! This is just what I needed... U rock!!
@peterpanmjli
@peterpanmjli 7 жыл бұрын
at 12:01 , the summation sign on the cost function just disappear (sum of error squared) ? What happened ?
@rashariyad1821
@rashariyad1821 3 жыл бұрын
Thank you, its very simple yet amazing explanation.
@tahiriqbal8543
@tahiriqbal8543 4 жыл бұрын
waoo that was amazing lecture which explains the back-end phenomena of ML the interesting part in this video was Maths explanation
@sophnatengwaba6175
@sophnatengwaba6175 6 жыл бұрын
great video... your way of teaching is lively, I have fun
@sweathaevangelin498
@sweathaevangelin498 6 жыл бұрын
Such an awesome way of teaching..u are rocking man!!
@crvnse
@crvnse 6 жыл бұрын
Awesome explanation of cost funciton , derivatives and its usage in ML
@earltan739
@earltan739 6 жыл бұрын
Thanks for doing the calculus part. It cleared up some things for me
@8eck
@8eck 4 жыл бұрын
So at 19:15, it's a formula to get the actual delta value of the cost/loss for one epoch?
@mohammadghoroobi3878
@mohammadghoroobi3878 5 жыл бұрын
I was really helpful, you are great in teaching concepts and problem simplification.
@mohammadghoroobi3878
@mohammadghoroobi3878 5 жыл бұрын
definitely, keep going.
@dmill989
@dmill989 4 жыл бұрын
Great explanation thank you! I kept seeing the chain rule, which I understand, but no one was explaining explicitly which chain of functions we are using it on and that the loss function is at the end of the chain.
@quanghong3922
@quanghong3922 5 жыл бұрын
So lucky when i was at high school i did a lot of math exercise about derivative and i love it
@joesan3597
@joesan3597 5 жыл бұрын
That was indeed very well explained! Thanks for the video! Could you please explain me why you treat the J(m, b) = ERROR^2 and then substitute the ERROR with mx + b -y when doing the partial derivative?
10.2: Neural Networks: Perceptron Part 1 - The Nature of Code
44:39
The Coding Train
Рет қаралды 505 М.
Gradient Descent, Step-by-Step
23:54
StatQuest with Josh Starmer
Рет қаралды 1,4 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Intro to Gradient Descent || Optimizing High-Dimensional Equations
11:04
Dr. Trefor Bazett
Рет қаралды 79 М.
Gradient descent, how neural networks learn | DL2
20:33
3Blue1Brown
Рет қаралды 7 МЛН
Collisions Without a Physics Library! (Coding Challenge 184)
31:05
The Coding Train
Рет қаралды 133 М.
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 1,1 МЛН
How Gradient Descent Works. Simple Explanation
5:01
Data Science Garage
Рет қаралды 111 М.
Stochastic Gradient Descent, Clearly Explained!!!
10:53
StatQuest with Josh Starmer
Рет қаралды 495 М.
Coding Challenge 181: Weighted Voronoi Stippling
28:59
The Coding Train
Рет қаралды 181 М.
The essence of calculus
17:05
3Blue1Brown
Рет қаралды 10 МЛН