How Gradient Descent Works. Simple Explanation

  Рет қаралды 106,615

Data Science Garage

Data Science Garage

4 жыл бұрын

Video explain what is gradient descent and how gradient descent works with a simple example. Basic intuition and explanation are revealed in the video.The content is:
0:09 - What is Gradient Descent.
0:30 - Example
0:39 - Step no. 1. Start with a random point and find the gradient (derivative) of the given function.
1:28 - Step no. 2. Set learning rate to get know how big should be a step to move forward on gradient descent to the opposite direction.
1:47 - Step no. 3. Perform calculations on iterations.
1:58 - Initialize parameters.
2:20 - calculations on the 1st iteration.
3:20 - calculations on the 2nd iteration.
4:26 - till we reach global or local minimum.
I hope that this explanation on how gradient descent works is useful for beginners of deep learning or good reminder for machine learning / deep learning experts.
#deeplearning #gradientdescent #ai

Пікірлер: 185
@blendaguedes
@blendaguedes 4 жыл бұрын
Sometimes we just need two loops to understand a whole. Thank you!
@uncoded0
@uncoded0 2 жыл бұрын
Thank you! Many hours of trying to understand gradient decent, now I finally get it, thanks to this video. Thank you!
@lovekildetoft5658
@lovekildetoft5658 3 жыл бұрын
All other videos on gradient descent are atleast 20 minutes long. This one is five, and made me understand more than any of those videos. Thank you!
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thank you for watching! Hoping it was useful.
@anamikabhowmick6322
@anamikabhowmick6322 3 жыл бұрын
This is one of the best and easiest way to learn and understand gradient descent, thank you so much for this
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Glad you liked it! :)
@DataScienceGarage
@DataScienceGarage 4 жыл бұрын
If you found useful in this video I highly recommend to check other related ones: -- Calculate Convolutional Layer Volume in ConvNet (kzbin.info/www/bejne/aaaolWN7p9Z6sLc) -- Adam. Rmsprop. Momentum. Optimization Algorithm. - Principles in Deep Learning (kzbin.info/www/bejne/j5LGgXh5pK5oibs) -- Numpy Argsort - np.argsort() - function. Simple Example (kzbin.info/www/bejne/bIibhnuso52Wock) -- Python Regular Expression (RegEx). Extract Dates from Strings in Pandas DataFrame (kzbin.info/www/bejne/e2XEp3WOl7OCfcU)
@impzhu3088
@impzhu3088 3 жыл бұрын
That’s the way to explain a concept! Example with detailed steps. Thank you so much!
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thanks for watching! :)
@phaniraju0456
@phaniraju0456 4 жыл бұрын
I bow to your for this great clarification ..loved it
@riki2404
@riki2404 3 жыл бұрын
Thank you for such a clear explanation. Short and precise. no unnecessary talk.
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thanks for watching! Hoping it was useful :)
@sukanya4498
@sukanya4498 2 жыл бұрын
Love this video ❤️, Very simple and precise! Thank you !
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for watching! :)
@TingBie
@TingBie 3 ай бұрын
Thanks for this example, simple and spot-on!
@eramitvajpeyee85
@eramitvajpeyee85 2 жыл бұрын
Thank you so much for explaining it in short and easy way!! Please keep uploading content like this.
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thank you for watching! Glad you enjoyed! :)
@dennisjoseph4528
@dennisjoseph4528 4 жыл бұрын
Great job of explaining this as simple as possible Sir
@samvanoye
@samvanoye 4 ай бұрын
Perfectly explained, thanks!
@DataScienceGarage
@DataScienceGarage 4 ай бұрын
Thanks for watching! :)
@abdelrahmane657
@abdelrahmane657 Жыл бұрын
Oh my god, you are excellent. You make the difference on KZbin. Thank you so much. 🎉🙏👏🙌👌👍✌🏼
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thanks you for such feedback, appreciate it! :)
@hindbelkharchiche1654
@hindbelkharchiche1654 3 жыл бұрын
Thank you .. the explanation is as simple as useful .
@nawaab9275
@nawaab9275 3 жыл бұрын
thanks for saving the semester
@Elementiah
@Elementiah 15 күн бұрын
Thank you so much for this! This is the perfect explanation! 😄
@ajaykushwaha4233
@ajaykushwaha4233 3 жыл бұрын
Best explanation ever.
@wtry0067
@wtry0067 4 жыл бұрын
It's very short and very useful.. I get clarity what I was looking for. Thanks once again.
@abdanettaye8217
@abdanettaye8217 2 жыл бұрын
good starting, thank you
@aalishanhunzai
@aalishanhunzai 2 ай бұрын
Bro thank you so much for your efforts, couldn't find a more simple explanation of gradient descent than this one.
@DataScienceGarage
@DataScienceGarage 2 ай бұрын
Thanks for such feedback! :)
@muhammadhashir7949
@muhammadhashir7949 2 жыл бұрын
Thank you so much your work was practical and I loved it alot and underestood gradient descent. Before that I spent lots of time but didn't understood it properly
@omkarkadam5715
@omkarkadam5715 2 жыл бұрын
Thanks mate, Finally Enlightened.
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for watching! I hope it was useful :)
@supantha118
@supantha118 Жыл бұрын
Thank you so much
@mastan775
@mastan775 4 жыл бұрын
Very good explanation...thanks a lot.
@abdellatifmarghan7521
@abdellatifmarghan7521 5 ай бұрын
Thank you. grateful explanation
@DataScienceGarage
@DataScienceGarage 5 ай бұрын
Glad it was useful! :)
@zafarnasim9267
@zafarnasim9267 2 жыл бұрын
You made it so simple. Great Job!
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks a lot! :)
@moazelsawaf2000
@moazelsawaf2000 4 жыл бұрын
Thanks a lot sir
@josephsmy1994
@josephsmy1994 2 жыл бұрын
Awesome explanation! straight to the point
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for such feedback! :)
@basheeralwaely9658
@basheeralwaely9658 3 жыл бұрын
Well done sir, very easy to understand
@RayhanAhmedsimanto
@RayhanAhmedsimanto 4 жыл бұрын
Amazing Practical Explanation. Great work.
@DataScienceGarage
@DataScienceGarage 4 жыл бұрын
Thanks Rayhan!
@yasamannazemi6706
@yasamannazemi6706 3 жыл бұрын
It was so simple and helped me a lot :) Thanks👍🏻
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thanks!
@murat2073
@murat2073 2 жыл бұрын
thank you Sir! you are a HERO!!!
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks a lot! :)
2 жыл бұрын
Perfect !
@davidkayode6679
@davidkayode6679 3 жыл бұрын
Wonderful Video!!! Thank You!
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thanks for feedback!:)
@TheJayenz
@TheJayenz 2 жыл бұрын
Thank you so much!
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for watching! :)
@Alex-pd5xc
@Alex-pd5xc Жыл бұрын
wow dude, very clearly explained and you made it simple for me to understand. cheers man
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thanks for such feedback, appreciate!
@jimyang8824
@jimyang8824 4 жыл бұрын
Good explanation!
@darkman8939
@darkman8939 3 жыл бұрын
thanks, very hhelpful.
@luisurena1770
@luisurena1770 3 жыл бұрын
Coñazo siempre hay un indu que me ayuda a entender todo🔥🔥🔥🔥
@muhammadhilmirozan1266
@muhammadhilmirozan1266 2 жыл бұрын
thx for explanation!
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for watching! :)
@9891676610
@9891676610 2 жыл бұрын
Awesome explanation . Thanks a lot !!
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for watching! Hope it was useful!
@george4746
@george4746 3 жыл бұрын
Thanks, It was very clear and concise.
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thanks!
@Slendich
@Slendich 2 жыл бұрын
Really great and simple explanation. Thank you
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for sich feedback, I'm glad it was helpful! :)
@strykeregziadahmed9562
@strykeregziadahmed9562 Жыл бұрын
2 hours in DL course i didnt get it 5 min made my day this is how actually learning should be
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Glad it was helpful for you! :)
@Snetter
@Snetter 2 жыл бұрын
Nice work! thanks
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for feedback, glad for this! :)
@johnnyslater3455
@johnnyslater3455 Жыл бұрын
Thank you!
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thank you for watching!
@mohamedelkhanche707
@mohamedelkhanche707 2 жыл бұрын
ohhhhh wonderful i was chocked this is insane thank you from all my heart
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks a lot for such feedback, appreciate!
@bhavikdudhrejiya4478
@bhavikdudhrejiya4478 4 жыл бұрын
Very good video. I appreciate your hard work. Keep uploading more videos.
@DataScienceGarage
@DataScienceGarage 4 жыл бұрын
Many thanks for such comment!
@diegososa5280
@diegososa5280 3 жыл бұрын
Thank you very much!
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thanks! Hoping it was useful. :)
@mbogitechconpts
@mbogitechconpts Жыл бұрын
Beautiful video. I have to like it.
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thanks for feedback, inspiring!
@pwan3971
@pwan3971 Жыл бұрын
Thanks a lot, really appeciate the video, this makes so much sense now
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thank you for you feedback! Glad it was useful for you :)
@AlfredEssa
@AlfredEssa 3 жыл бұрын
Good job!
@praneethcj6544
@praneethcj6544 4 жыл бұрын
Simple and clear ... Yet need more detailing ...!!!!
@Hasasinful
@Hasasinful 3 жыл бұрын
Thanks just what i needed
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Hope it was useful. Thank you!
@AJ-et3vf
@AJ-et3vf 2 жыл бұрын
Very useful! Awesome ❤️
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for watching! :)
@karthiklogan9384
@karthiklogan9384 3 жыл бұрын
really helpful sir.thank you so much
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Happy that was useful.
@machinelearningid3931
@machinelearningid3931 4 жыл бұрын
Thanks, this give me the light in darkness.
@radhar5349
@radhar5349 2 жыл бұрын
Great explanation. Easy to get the concept
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for feedback! :)
@eliashossain4327
@eliashossain4327 Жыл бұрын
Best explanation.
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thanka for such feedback! :)
@bhavya2301
@bhavya2301 3 жыл бұрын
Thankyou.
@fmikael1
@fmikael1 2 жыл бұрын
Thanks for the great explination. everyone always complicates it
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks for feedback, glad it was helpful! :)
@thankyouthankyou1172
@thankyouthankyou1172 2 жыл бұрын
Useful thank you
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thank you for watching!
@MrAnindyabanerjee
@MrAnindyabanerjee 4 жыл бұрын
Thank you
@yaminikommi5406
@yaminikommi5406 Жыл бұрын
We can take any number as intial parameters and learning rate
@sanurcucuyeva7040
@sanurcucuyeva7040 Жыл бұрын
Hi, thanks for explanation. If our function is hard, at what point in the iteration should we stop to find the minimum point
@MuditDahiya
@MuditDahiya 3 жыл бұрын
Very nice explanation!!
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thanks!
@hemantsah8567
@hemantsah8567 4 жыл бұрын
It is easy... spent my 2 days on learning gradient descent.... then I came to your video... Thanks bro
@emrecik9882
@emrecik9882 Жыл бұрын
Thanks
@arvinds7182
@arvinds7182 Жыл бұрын
On point👏
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thanks!
@seathru1232
@seathru1232 3 жыл бұрын
GREAT!
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thanks!
@govardhan3099
@govardhan3099 3 жыл бұрын
Great explained...
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Thanks!
@mohsinjunaid8454
@mohsinjunaid8454 Жыл бұрын
thanks
@user-qj1lm1xh2z
@user-qj1lm1xh2z 2 жыл бұрын
Well done 👏
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Thanks! :)
@SuperYtc1
@SuperYtc1 Жыл бұрын
This is a good video.
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thanks!
@grinfacelaxu
@grinfacelaxu 21 күн бұрын
Nice!
@DataScienceGarage
@DataScienceGarage 20 күн бұрын
Thanks!
@alejandrobarquin6511
@alejandrobarquin6511 2 жыл бұрын
I get the idea but any reason for not doing simple math to find the local min? dy/dx = 2(x+5) If we want to find the min, we just do dy/dx=0.. then: 0 = 2(x+5) x = -5
@bernardaslabutis5098
@bernardaslabutis5098 3 жыл бұрын
Ačiū, padėjo!
@DataScienceGarage
@DataScienceGarage 3 жыл бұрын
Džiaugiuosi! :)
@glenfernandes253
@glenfernandes253 2 жыл бұрын
how do you know, how many iterations to run before reaching the global/local minimum, what if it reaches the minimum and starts climbing on the other side ?
@ydkmusic
@ydkmusic 3 жыл бұрын
Great video! There is a typo around 3:50. The bottom equation should be x_2 = .... instead of x_1.
@smurfNA
@smurfNA Жыл бұрын
hey! so do we choose the learning rate? and the gradient is simply just the function right ?
@dtakamalakirthidissanayake9770
@dtakamalakirthidissanayake9770 4 жыл бұрын
Thank You So Much. Great Simple Explanation!!!
@sandipmaity2687
@sandipmaity2687 4 жыл бұрын
Amazing Explanation :) Really simple and to the point 😀
@blinky1892
@blinky1892 Жыл бұрын
How do we know what the y value is of the parabole at any given x?😊
@mattk6182
@mattk6182 2 жыл бұрын
using x as your means of showing multiplication is confusing, makes it looks like you took the derivative wrong with 2x(x+5)..maybe in future videos either leave the x out so the multiplication is implied.
@twicestay6683
@twicestay6683 7 ай бұрын
Thx a lot!!! But I'd like to ask why the learning rate=0.01? is it a random number? Thx
@louerleseigneur4532
@louerleseigneur4532 4 жыл бұрын
merci
@kronlogic2408
@kronlogic2408 3 жыл бұрын
For the Iteration 2, shouldn't the second line be x2= and not x1= ?
@bharatcreations7154
@bharatcreations7154 2 жыл бұрын
Can we compute same thing without getting into learning rate??
@denisplotnikov6875
@denisplotnikov6875 2 жыл бұрын
How to use this example for Stochastic Gradient Descent?
@michaelscott8572
@michaelscott8572 3 жыл бұрын
What I don't get is: When we use this method in neural net, we don't know the Errorfunction. We just have some point. So how can I build the derivative?
@preetbenipal1034
@preetbenipal1034 4 жыл бұрын
its simple short and easy here ..thank you :)
@gireejatmajhiremath6751
@gireejatmajhiremath6751 4 жыл бұрын
Thank you very much sir for clearing my concept.
@colton3000
@colton3000 2 жыл бұрын
How do we find learning rate?
@senthilkumar1172
@senthilkumar1172 Жыл бұрын
super
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thanks for watching!
@pearlsofwisdom2416
@pearlsofwisdom2416 4 жыл бұрын
Good explanation but would have been better if you elaborated its formula of why it is used to reach next step. Why is derivative multiplied by learning rate and why it is then substracted from first point value
@blendaguedes
@blendaguedes 4 жыл бұрын
The learning rate makes the "decay slow". At his first interaction, the result would be: -3 -4 = -7. Can you see where this is going? As he goes slow he will keep dropping his "y", until he get to as close as possible to -5. Sometimes to get at the minimum you have to make you learning rate smaller while computing your weights .
@davidbarnwell_virtual_clas6729
@davidbarnwell_virtual_clas6729 2 жыл бұрын
How do we choose the learning rate? Good video but it's things like that I'd love to know
@DataScienceGarage
@DataScienceGarage 2 жыл бұрын
Hi! Choosing learning rate often is not easy task. I usually makes experiments on model performance with multiple learning rate (manual, Grid search hyperparameter tuning, Bayesian search, etc.).
@davidbarnwell_virtual_clas6729
@davidbarnwell_virtual_clas6729 2 жыл бұрын
@@DataScienceGarage Ahh...ok...I get you...it's very interesting.
@codingtamilan
@codingtamilan 4 жыл бұрын
How you draw that curve can be fixed as -5 ? Always it is centre as -5 ?
@blendaguedes
@blendaguedes 4 жыл бұрын
First you decides witch will be his loss function. On his case it was (5+x)^2, or x^2 + 10x + 25. Nos you program the gradient descent to find the minimum of the function. It depends of your function.
@codingtamilan
@codingtamilan 4 жыл бұрын
@@blendaguedes thq... pleasure to meet you
@shankaks7217
@shankaks7217 Жыл бұрын
Why did we choose 0.01 as the learning rate?
@boniface385
@boniface385 Жыл бұрын
Hi, why the learning rate are 0.01? Can it be any random learning rate? For example 0.2, 0.02 or any. I appreciate it for thee fast reply, thank you😊🙏🏻🙏🏻🙏🏻
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Hello! Thanks for watching this video, I'm glad it was useful for you. While modelling ML system, you can specify random Learning rate. However the good practice is to use 0.1, 0.01, 0.001, or 0.0001. Each ML model has its own architecture, and different training data, hyperparameters, etc., so learning rate can be adopted separately for each case. Here, I used 0.01 just for demonstration purposes.
@boniface385
@boniface385 Жыл бұрын
@@DataScienceGarage thank you so much for the explanation. 🫶🏻
Gradient Descent - Simply Explained! ML for beginners with Code Example!
12:35
3.5: Mathematics of Gradient Descent - Intelligence and Learning
22:36
The Coding Train
Рет қаралды 239 М.
Can teeth really be exchanged for gifts#joker #shorts
00:45
Untitled Joker
Рет қаралды 14 МЛН
🌊Насколько Глубокий Океан ? #shorts
00:42
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 104 МЛН
Gradient Descent Part 1 Chieh
10:46
Chieh Wu
Рет қаралды 62 М.
Solve any equation using gradient descent
9:05
Edgar Programmator
Рет қаралды 52 М.
Neural Networks: Stochastic, mini-batch and batch gradient descent
11:40
Gradient Descent, Step-by-Step
23:54
StatQuest with Josh Starmer
Рет қаралды 1,2 МЛН
Gradient descent - with a simple example
18:16
TileStats
Рет қаралды 2,6 М.
Gradient Descent | Neural Networks
15:33
First Principles of Computer Vision
Рет қаралды 17 М.
Applied Optimization - Steepest Descent
29:49
purdueMET
Рет қаралды 62 М.
Application of Calculus in Backpropagation
14:45
Orblitz
Рет қаралды 15 М.
Gradient Descent : Data Science Concepts
11:03
ritvikmath
Рет қаралды 32 М.
Tutorial 12- Stochastic Gradient Descent vs Gradient Descent
12:17
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 2,2 МЛН
Неразрушаемый смартфон
1:00
Status
Рет қаралды 1,4 МЛН
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,1 МЛН
Нашел еще 70+ нововведений в iOS 18!
11:04
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,8 МЛН
После ввода кода - протирайте панель
0:18
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 936 М.