Tutorial 7- Vanishing Gradient Problem

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2019
  • Vanishing Gradient Problem occurs when we try to train a Neural Network model using Gradient based optimization techniques. Vanishing Gradient Problem was actually a major problem 10 years back to train a Deep neural Network Model due to the long training process and the degraded accuracy of the Model.
    Below are the various playlist created on ML,Data Science and Deep Learning. Please subscribe and support the channel. Happy Learning!
    Deep Learning Playlist: • Tutorial 1- Introducti...
    Data Science Projects playlist: • Generative Adversarial...
    NLP playlist: • Natural Language Proce...
    Statistics Playlist: • Population vs Sample i...
    Feature Engineering playlist: • Feature Engineering in...
    Computer Vision playlist: • OpenCV Installation | ...
    Data Science Interview Question playlist: • Complete Life Cycle of...
    You can buy my book on Finance with Machine Learning and Deep Learning from the below url
    amazon url: www.amazon.in/Hands-Python-Fi...
    🙏🙏🙏🙏🙏🙏🙏🙏
    YOU JUST NEED TO DO
    3 THINGS to support my channel
    LIKE
    SHARE
    &
    SUBSCRIBE
    TO MY TH-cam CHANNEL

ความคิดเห็น • 195

  • @kumarpiyush2169
    @kumarpiyush2169 3 ปีที่แล้ว +122

    HI Krish.. dL/dW'11= should be [dL/dO21. dO21/dO11. dO11/dW'11] +
    [dL/dO21. dO21/dO12. dO12/dW'11] as per the last chain rule illustration. Please confirm

    • @rahuldey6369
      @rahuldey6369 3 ปีที่แล้ว +12

      ...but O12 is independent of W11,in that case won't the 2nd term be zero?

    • @RETHICKPAVANSE
      @RETHICKPAVANSE 3 ปีที่แล้ว +1

      wrong bruh

    • @ayushprakash3890
      @ayushprakash3890 3 ปีที่แล้ว +2

      we don't
      have the second term

    • @Ajamitjain
      @Ajamitjain 3 ปีที่แล้ว +1

      Can anyone clarify this? I too have this question.

    • @grahamfernando8775
      @grahamfernando8775 3 ปีที่แล้ว +28

      @@Ajamitjain dL/dW'11= should be [dL/dO21. dO21/dO11. dO11/dW'11]

  • @mahabir05
    @mahabir05 4 ปีที่แล้ว +34

    I like how you explain and end your class "never give up " It very encouraging

  • @Xnaarkhoo
    @Xnaarkhoo 3 ปีที่แล้ว +14

    many years ago in the college I was enjoy watching videos from IIT - before the mooc area, India had and still have many good teachers ! It brings me joy to see that again. Seems Indians have a gene of pedagogy

  • @Vinay1272
    @Vinay1272 ปีที่แล้ว +6

    I have been taking a well-known world-class course on AI and ML since the past 2 years and none of the lecturers have made me so interested in any topic as much as you have in this video. This is probably the first time I have sat through a 15-minute lecture without distracting myself. What I realise now is that I didn't lack motivation or interest, nor that I was lazy - I just did not have lecturers whose teaching inspired me enough to take interest in the topics, yours did.
    You have explained the vanishing gradient problem so very well and clear. It shows how strong your concepts are and how knowledgeable you are.
    Thank you for putting out your content here and sharing your knowledge with us. I am so glad I found your channel. Subscribed forever.

  • @PeyiOyelo
    @PeyiOyelo 4 ปีที่แล้ว +43

    Sir or As my Indian Friends say, "Sar", you are a very good teacher and thank you for explaining this topic. It makes a lot of sense. I can also see that you're very passionate however, the passion kind of makes you speed up the explanation a bit making it a bit hard to understand sometimes. I am also very guilty of this when I try to explain things that I love. Regardless, thank you very much for this and the playlist. I'm subscribed ✅

    • @amc8437
      @amc8437 3 ปีที่แล้ว +3

      Consider reducing playback speed.

  • @tosint
    @tosint 4 ปีที่แล้ว +11

    I hardly comment on videos, but this is a gem. One of the best videos explaining vanishing gradients problems.

  • @ltoco4415
    @ltoco4415 4 ปีที่แล้ว +6

    Thank you sir for making this misleading concept crystal clear. Your knowledge is GOD level 🙌

  • @aidenaslam5639
    @aidenaslam5639 4 ปีที่แล้ว +3

    Great stuff! Finally understand this. Also loved it when you dropped the board eraser

  • @benvelloor
    @benvelloor 3 ปีที่แล้ว +1

    Very well explained. I can't thank you enough for clearing all my doubts!

  • @lekjov6170
    @lekjov6170 4 ปีที่แล้ว +36

    I just want to add this mathematically, the derivative of the sigmoid function can be defined as:
    *derSigmoid = x * (1-x)*
    As Krish Naik well said, we have our maximum when *x=0.5*, giving us back:
    *derSigmoid = 0.5 * (1-0.5) --------> derSigmoid = 0.25*
    That's the reason the derivative of the sigmoid function can't be higher than 0.25

    • @ektamarwaha5941
      @ektamarwaha5941 4 ปีที่แล้ว

      COOL

    • @thepsych3
      @thepsych3 4 ปีที่แล้ว

      cool

    • @tvfamily6210
      @tvfamily6210 4 ปีที่แล้ว +13

      should be: derSigmoid(x) = Sigmoid(x)[1-Sigmoid(x)], and we know it reaches maximum at x=0. Plugging in: Sigmoid(0)=1/(1+e^(-0))=1/2=0.5, thus derSigmoid(0)=0.5*[1-0.5]=0.25

    • @benvelloor
      @benvelloor 3 ปีที่แล้ว

      @@tvfamily6210 Thank you!

    • @est9949
      @est9949 3 ปีที่แล้ว

      I'm still confused. The weight w should be in here somewhere. This seems to be missing w.

  • @marijatosic217
    @marijatosic217 3 ปีที่แล้ว +3

    I am amazed by the level of energy you have! Thank you :)

  • @manujakothiyal3745
    @manujakothiyal3745 4 ปีที่แล้ว +1

    Thank you so much. The amount of effort you put is commendable.

  • @elielberra2867
    @elielberra2867 ปีที่แล้ว

    Thank you for all the effort you put into your explanations, they are very clear!

  • @rushikeshmore8890
    @rushikeshmore8890 3 ปีที่แล้ว

    Kudos sir ,am working as data analyst read lots of blogs , watched videos but today i cleared the concept . Thanks for The all stuff

  • @al3bda
    @al3bda 3 ปีที่แล้ว +1

    oh my god you are a good teacher i really fall in love how you explain and simplify things

  • @MauiRivera
    @MauiRivera 3 ปีที่แล้ว

    I like the way you explain things, making them easy to understand.

  • @gultengorhan2306
    @gultengorhan2306 2 ปีที่แล้ว +1

    You are teaching better than many other people in this field.

  • @koraymelihyatagan8111
    @koraymelihyatagan8111 2 ปีที่แล้ว

    Thank you very much, I was wandering around the internet to find such an explanatory video.

  • @piyalikarmakar5979
    @piyalikarmakar5979 2 ปีที่แล้ว

    One of the best vedio on clarifying Vanishing Gradient problem..Thank you sir..

  • @sapnilpatel1645
    @sapnilpatel1645 ปีที่แล้ว +1

    so far best explanation about vanishing gradient.

  • @sumeetseth22
    @sumeetseth22 4 ปีที่แล้ว

    Love your videos, I have watched and taken many courses but no one is as good as you

  • @venkatshan4050
    @venkatshan4050 2 ปีที่แล้ว +1

    Marana mass explanation🔥🔥. Simple and very clearly said.

  • @vikrantchouhan9908
    @vikrantchouhan9908 2 ปีที่แล้ว +2

    Kudos to your genuine efforts. One needs sincere efforts to ensure that the viewers are able to understand things clearly and those efforts are visible in your videos. Kudos!!! :)

  • @swapwill
    @swapwill 3 ปีที่แล้ว

    The way you explain is just awesome

  • @meanuj1
    @meanuj1 4 ปีที่แล้ว +4

    Nice presentation..so much helpful...

  • @daniele5540
    @daniele5540 4 ปีที่แล้ว +1

    Great tutorial man! Thank you!

  • @classictremonti7997
    @classictremonti7997 3 ปีที่แล้ว

    Krish...you rock brother!! Keep up the amazing work!

  • @himanshubhusanrath2492
    @himanshubhusanrath2492 2 ปีที่แล้ว

    One of the best explanations of vanishing gradient problem. Thank you so much @KrishNaik

  • @benoitmialet9842
    @benoitmialet9842 2 ปีที่แล้ว +1

    Thank you so much, great quality content.

  • @shmoqe
    @shmoqe 2 ปีที่แล้ว

    Great explanation, Thank you!

  • @bhavikdudhrejiya4478
    @bhavikdudhrejiya4478 4 ปีที่แล้ว

    Very nice way to explain.
    Learned from this video-
    1. Getting the error (Actual Output - Model Output)^2
    2. Now We have to reduce an error i.e Backpropagation, We have to find a new weight or a new variable
    3. Finding New Weight = Old weight x Changes in the weight
    4. Change in the Weight = Learning rate x d(error / old weight)
    5. After getting a new weight is as equals to old weight due to derivate of Sigmoid ranging between 0 to 0.25 so there is no update in a new weight
    6. This is a vanishing gradient

  • @vishaljhaveri6176
    @vishaljhaveri6176 2 ปีที่แล้ว

    Thank you, Krish SIr. Nice explanation.

  • @mittalparikh6252
    @mittalparikh6252 3 ปีที่แล้ว +1

    Overall got the idea, that you are trying to convey. Great work

  • @deepthic6336
    @deepthic6336 4 ปีที่แล้ว

    I must say this, normally I am kinda person who prefers to study on own and crack it. Never used to listen to any of the lectures till date because I just don't understand and I dislike the way they explain without passion(not all though). But, you are a gem and I can see the passion in your lectures. You are the best Krish Naik. I appreciate it and thank you.

  • @b0nnibell_
    @b0nnibell_ 4 ปีที่แล้ว

    you sir made neural network so much fun!

  • @skiran5129
    @skiran5129 2 ปีที่แล้ว

    I'm lucky to see this wonderful class.. Tq..

  • @adityashewale7983
    @adityashewale7983 11 หลายเดือนก่อน

    hats off to you sir,Your explanation is top level, THnak you so much for guiding us...

  • @sunnysavita9071
    @sunnysavita9071 4 ปีที่แล้ว

    your videos are very helpful ,good job and good work keep it up...

  • @yoyomemory6825
    @yoyomemory6825 3 ปีที่แล้ว +1

    Very clear explanation, thanks for the upload.. :)

  • @classictremonti7997
    @classictremonti7997 3 ปีที่แล้ว

    So happy I found this channel! I would have cried if I found it and it was given in Hindi (or any other language than English)!!!!!

  • @nabeelhasan6593
    @nabeelhasan6593 2 ปีที่แล้ว

    Very nice video sir , you explained very well the inner intricacies of this problem

  • @MrSmarthunky
    @MrSmarthunky 4 ปีที่แล้ว

    Krish.. You are earning a lot of Good Karmas by posting such excellent videos. Good work!

  • @naresh8198
    @naresh8198 ปีที่แล้ว

    crystal clear explanation !

  • @satyadeepbehera2841
    @satyadeepbehera2841 4 ปีที่แล้ว +3

    Appreciate your way of teaching which answers fundamental questions.. This "derivative of sigmoid ranging from 0 to 0.25" concept was nowhere mentioned.. thanks for clearing the basics...

    • @mittalparikh6252
      @mittalparikh6252 3 ปีที่แล้ว

      Look for Mathematics for Deep Learning. It will help

  • @MsRAJDIP
    @MsRAJDIP 4 ปีที่แล้ว +2

    Tommorow I have interview, clearing all my doubts from all your videos 😊

  • @nazgulzholmagambetova1198
    @nazgulzholmagambetova1198 ปีที่แล้ว

    great video! thank you so much!

  • @YashSharma-es3lr
    @YashSharma-es3lr 3 ปีที่แล้ว

    very simple and nice explanation . I understand it in first time only

  • @nirmalroy1738
    @nirmalroy1738 4 ปีที่แล้ว

    super video...extremely well explained.

  • @neelanshuchoudhary536
    @neelanshuchoudhary536 4 ปีที่แล้ว +1

    very nice explanation,,great :)

  • @hiteshyerekar9810
    @hiteshyerekar9810 4 ปีที่แล้ว +4

    Nice video Krish.Please make practicle based video on gradient decent,CNN,RNN.

  • @narsingh2801
    @narsingh2801 4 ปีที่แล้ว

    You are just amazing. Thnx

  • @faribataghinezhad3293
    @faribataghinezhad3293 ปีที่แล้ว

    Thank you sir for your amazing video. that was great for me.

  • @sunnysavita9071
    @sunnysavita9071 4 ปีที่แล้ว

    very good explanation.

  • @arunmeghani1667
    @arunmeghani1667 3 ปีที่แล้ว

    great video and great explanation

  • @nola8028
    @nola8028 ปีที่แล้ว

    You just earned a +1 subscriber ^_^
    Thank you very much for the clear and educative video

  • @ambreenfatimah194
    @ambreenfatimah194 3 ปีที่แล้ว

    Helped a lot....thanks

  • @melikad2768
    @melikad2768 3 ปีที่แล้ว +1

    Thank youuuu, its really great:)

  • @krishj8011
    @krishj8011 2 ปีที่แล้ว

    Very nice series... 👍

  • @dhananjayrawat317
    @dhananjayrawat317 4 ปีที่แล้ว

    best explanation. Thanks man

  • @BalaguruGupta
    @BalaguruGupta 3 ปีที่แล้ว

    Thanks a lot sir for the wonderful explanation :)

  • @nikunjlahoti9704
    @nikunjlahoti9704 ปีที่แล้ว

    Great Lecture

  • @abdulqadar9580
    @abdulqadar9580 2 ปีที่แล้ว

    Great efforts Sir

  • @abhinavkaushik6817
    @abhinavkaushik6817 2 ปีที่แล้ว

    Thank you so much for this

  • @GunjanGrunge
    @GunjanGrunge 2 ปีที่แล้ว

    that was very well explained

  • @skviknesh
    @skviknesh 3 ปีที่แล้ว +1

    I understood it. Thanks for the great tutorial!
    My query is:
    weight vanishes when respect to more layers. When new weight ~= old weight result becomes useless.
    what would the O/P of that model look like (or) will we even achieve global minima??

  • @tonnysaha7676
    @tonnysaha7676 3 ปีที่แล้ว

    Thank you thank you thank you sir infinite times🙏.

  • @yousufborno3875
    @yousufborno3875 4 ปีที่แล้ว

    You should get Oscar for your teaching skills.

  • @gaurawbhalekar2006
    @gaurawbhalekar2006 4 ปีที่แล้ว

    excellent explanation sir

  • @khiderbillal9961
    @khiderbillal9961 3 ปีที่แล้ว +1

    thanks sir you really hepled me

  • @AA-yk8zi
    @AA-yk8zi 3 ปีที่แล้ว

    Thank you so much

  • @ArthurCor-ts2bg
    @ArthurCor-ts2bg 4 ปีที่แล้ว

    Excellent 👌

  • @feeham
    @feeham 2 ปีที่แล้ว

    Thank you !!

  • @AnirbanDasgupta
    @AnirbanDasgupta 3 ปีที่แล้ว

    excellent video

  • @Thriver21
    @Thriver21 ปีที่แล้ว

    nice explanation.

  • @ilyoskhujayorov8498
    @ilyoskhujayorov8498 3 ปีที่แล้ว

    Thank you !

  • @maheshsonawane8737
    @maheshsonawane8737 ปีที่แล้ว

    Very nice now i understand why weights doesn't update in RNN. The main point is derivative of sigmoid is between 0 and 0.25. Vanishing gradient is associated with only sigmoid function. 👋👋👋👋👋👋👋👋👋👋👋👋

  • @salimtheone
    @salimtheone ปีที่แล้ว

    very well explained 100/100

  • @prerakchoksi2379
    @prerakchoksi2379 4 ปีที่แล้ว +1

    I am doing deep learning specialization, feeling that this is much better than that

  • @narayanjha3488
    @narayanjha3488 4 ปีที่แล้ว +1

    This video is amazing and you are amazing teacher thanks for sharing such amazing information
    Btw where are you from banglore?

  • @susmitvengurlekar
    @susmitvengurlekar 3 ปีที่แล้ว

    Understood completely! If weights hardly change, no point in training and training. But I have got a question, where can I use this knowledge and understanding I just acquired ?

  • @naimamushfika1167
    @naimamushfika1167 ปีที่แล้ว

    nice explanation

  • @amitdebnath2207
    @amitdebnath2207 หลายเดือนก่อน

    Hats Off Brother

  • @ganeshkharad
    @ganeshkharad 4 ปีที่แล้ว

    nice explaination

  • @anusuiyatiwari1800
    @anusuiyatiwari1800 3 ปีที่แล้ว

    Very interesting

  • @naughtyrana4591
    @naughtyrana4591 3 ปีที่แล้ว

    Guruvar ko pranam🙏

  • @louerleseigneur4532
    @louerleseigneur4532 3 ปีที่แล้ว

    Thanks krish

  • @raj4624
    @raj4624 2 ปีที่แล้ว

    superb

  • @magicalflute
    @magicalflute 4 ปีที่แล้ว

    Very well explained. Vanishing gradient problem as per my understanding is that, it is not able to perform the optimizer job (to reduce the loss) as old weight and new weights will be almost equal. Please correct me, if i am wrong. Thanks!!

  • @hokapokas
    @hokapokas 4 ปีที่แล้ว +4

    Good job bro as usual... Keep up the good work.. I had a request of making a video on implementing back propagation. Please make a video for it.

    • @krishnaik06
      @krishnaik06  4 ปีที่แล้ว +1

      Already the video has been made.please have a look on my deep learning playlist

    • @hokapokas
      @hokapokas 4 ปีที่แล้ว

      @@krishnaik06 I have seen that video but it's not implemented in python.. If you have a notebook you can refer me to pls

    • @krishnaik06
      @krishnaik06  4 ปีที่แล้ว +3

      With respect to implementation with python please wait till I upload some more videos

  • @lalithavanik5022
    @lalithavanik5022 3 ปีที่แล้ว

    Nice expalnation sir

  • @muhammadarslankahloon7519
    @muhammadarslankahloon7519 3 ปีที่แล้ว +2

    Hello sir, why the chain rule explained in this video is different from the very last chain rule video. kindly clearly me and thanks for such an amazing series on deep learning.

  • @aaryankangte6734
    @aaryankangte6734 ปีที่แล้ว

    Sir thank u for teaching us all the concepts from basics but just one request is that if there is a mistake in ur videos then pls rectify it as it confuses a lot of people who watch these videos as not everyone sees the comment section and they just blindly belive what u say. Therefore pls look into this.

  • @Haraharavlogs
    @Haraharavlogs 4 หลายเดือนก่อน

    you are legend nayak sir

  • @Joe-tk8cx
    @Joe-tk8cx ปีที่แล้ว

    Great video, one question, when you calculate the new weights using the old weight - learning rate x derivative of loss with respect to weight, the derivative of loss wrt weight is that the sigmoid function ?

  • @rayyankhattak544
    @rayyankhattak544 ปีที่แล้ว

    Great-

  • @anandemani5472
    @anandemani5472 4 ปีที่แล้ว

    Hi Krish,Can we declare convergence when the weights are decreasing less than 0.0001?

  • @manikosuru5712
    @manikosuru5712 4 ปีที่แล้ว +4

    As usual extremely good outstanding...
    And a small request can expect this DP in coding(python) in future??

  • @varayush
    @varayush 3 ปีที่แล้ว

    @krish: thanks for the wonderful lessons on the neural network. may I request you to correct the equation using some text box on the video as this will have intact information that you would like to pass on

  • @aishwaryaharidas2100
    @aishwaryaharidas2100 4 ปีที่แล้ว

    Should we again add bias to the product of the output from the hidden layer O11, O12 and weights W4, W5?

  • @suryagunda4038
    @suryagunda4038 3 ปีที่แล้ว

    May god bless you ..