Recurrent Neural Networks (RNNs), Clearly Explained!!!

Поділитися
Вставка
  • Опубліковано 6 чер 2024
  • When you don't always have the same amount of data, like when translating different sentences from one language to another, or making stock market predictions from different companies, Recurrent Neural Networks come to the rescue. In this StatQuest, we'll show you how Recurrent Neural Networks work, one step at a time, and then we'll show you their critical flaw that will lead us to understanding Long Short-Term Memory Networks.
    English
    This video has been dubbed using an artificial voice via aloud.area120.google.com to increase accessibility. You can change the audio track language in the Settings menu.
    Spanish
    Este video ha sido doblado al español con voz artificial con aloud.area120.google.com para aumentar la accesibilidad. Puede cambiar el idioma de la pista de audio en el menú Configuración.
    Portuguese
    Este vídeo foi dublado para o português usando uma voz artificial via aloud.area120.google.com para melhorar sua acessibilidade. Você pode alterar o idioma do áudio no menu Configurações.
    For a complete index of all the StatQuest videos, check out...
    app.learney.me/maps/StatQuest
    ...or...
    statquest.org/video-index/
    If you'd like to support StatQuest, please consider...
    Patreon: / statquest
    ...or...
    UA-cam Membership: / @statquest
    ...a cool StatQuest t-shirt or sweatshirt:
    shop.spreadshirt.com/statques...
    ...buying one or two of my songs (or go large and get a whole album!)
    joshuastarmer.bandcamp.com/
    ...or just donating to StatQuest!
    www.paypal.me/statquest
    Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
    / joshuastarmer
    0:00 Awesome song and introduction
    4:13 Basic anatomy of a recurrent neural network
    5:59 Running data through a recurrent neural network
    10:31 Shared weights and biases
    11:23 The vanishing/exploding gradient problem.
    #StatQuest #NeuralNetworks #Deeplearning #DubbedWithAloud

КОМЕНТАРІ • 695

  • @statquest
    @statquest  Рік тому +26

    To learn more about Lightning: github.com/PyTorchLightning/pytorch-lightning
    To learn more about Grid: www.grid.ai/
    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

    • @rathnakumarv3956
      @rathnakumarv3956 Рік тому

      whether the book include LSTM and RNN for bi variate input time series data as well?

    • @statquest
      @statquest  Рік тому

      @@rathnakumarv3956 Nope, just basic neural networks. My next book on deep learning will have more stuff about fancy neural networks.

    • @rathnakumarv3956
      @rathnakumarv3956 Рік тому +1

      @@statquest
      please include CNN, RNN and LSTM for multivariate time series as input and continuous variable as out put - problems, these are very much useful in climate change studies.

    • @statquest
      @statquest  Рік тому +1

      @Tech What time point, minutes and seconds, is confusing? And have you watched the entire series on Neural Networks before watching this one?

    • @Lyr00
      @Lyr00 6 місяців тому

      @statquest I have a question about the vanishing gradient problem. I understand that input1 from the first timestep is having less and less impact on the output the more steps we take but isn’t the gradient also relying on the new inputs of every timestep? I don’t understand why the gradient is vanishing if the new inputs aren’t that heavily discounted as the timesteps that are older. I imagined it’s more like the old inputs are less impactful and the network is more focused on the newer inputs but can still train normally. Is there something I’m missing?

  • @s0meus3r
    @s0meus3r 2 місяці тому +42

    The only place on the internet where you can actually grasp a complex topic before diving deeper into the topic. I am so grateful people like you exist. Thank you!

  • @wildpjah
    @wildpjah 7 місяців тому +54

    I'm in a deep learning class right now and the amount of straight math that my teacher throws at me is overwhelming. Videos like yours are incredible and I'm so thankful for the help and the color coding and the fun that makes it worth watching! It is super helpful as I'm studying for my midterm and just want to get a more definite grasp of what all this math actually means without reading someone's Mathematics PhD dissertation or something

    • @statquest
      @statquest  7 місяців тому +2

      Good luck on your midterm! :)

  • @statquest
    @statquest  Рік тому +2

    To learn more about Lightning: github.com/PyTorchLightning/pytorch-lightning
    To learn more about Grid: www.grid.ai/
    Support StatQuest by buying The StatQuest Illustrated Guide to Machine Learning!!!
    PDF - statquest.gumroad.com/l/wvtmc
    Paperback - www.amazon.com/dp/B09ZCKR4H6
    Kindle eBook - www.amazon.com/dp/B09ZG79HXC
    English
    This video has been dubbed using an artificial voice via aloud.area120.google.com to increase accessibility. You can change the audio track language in the Settings menu.
    Spanish
    Este video ha sido doblado al español con voz artificial con aloud.area120.google.com para aumentar la accesibilidad. Puede cambiar el idioma de la pista de audio en el menú Configuración.
    Portuguese
    Este vídeo foi dublado para o português usando uma voz artificial via aloud.area120.google.com para melhorar sua acessibilidade. Você pode alterar o idioma do áudio no menu Configurações.

  • @mohammadhamed-ro9tx
    @mohammadhamed-ro9tx 6 місяців тому +11

    Everytime I watch on of your lessons, I become sooo happy, because you make all the subjects easy to be understood in magical way. Thank you for your effort

    • @statquest
      @statquest  6 місяців тому +1

      Wow, thank you!

  • @toddgillies3380
    @toddgillies3380 Рік тому +25

    Never quite understood RNNs until I watched this video, thank you! A hand-calculated example of a one-to-one RNN is extremely hard to find online, so this was perfect. The only one out there, I believe.

  • @thecomputerpal221
    @thecomputerpal221 Рік тому +16

    Josh, I found your channel yesterday and have been binge watching. Incredible work in democratizing knowledge. Thankful for your work.

  • @carleanoravelzawongso9786
    @carleanoravelzawongso9786 Рік тому +47

    I'm just in love with your content. I've watched your neural network series and it was just so easy to understand. You really deserve more subs and views Josh!

  • @jamesyoun1143
    @jamesyoun1143 Рік тому +6

    One of the most underrated channels. Never once have I had trouble understanding the intuition of whatever you explain. I'd donate money to you if I weren't a broke college student.

  • @elmehditalbi8972
    @elmehditalbi8972 11 місяців тому +3

    You can't understand how good this is. I've spent all of yesterday trying to understand these concepts but I couldn't grasp them. THANK YOU!!!

    • @statquest
      @statquest  11 місяців тому +1

      Glad it helped!

  • @LuizHenrique-qr3lt
    @LuizHenrique-qr3lt Рік тому +74

    Josh!!!! I love u!!! I can't wait to learn about the Transformers!! thank you very much for your content

    • @statquest
      @statquest  Рік тому +4

      Thank you!

    • @capyk5455
      @capyk5455 Рік тому +4

      Josh teaching about transformers would be a blessing

    • @statquest
      @statquest  Рік тому +4

      @@capyk5455 I'm looking forward to it!

    • @shaiguitar
      @shaiguitar Рік тому +1

      Transformers out yet or some ETA to expect?

    • @statquest
      @statquest  Рік тому +7

      @@shaiguitar LSTMs comes out in the next week or so. Then I'll start working on transformers.

  • @artem_isakow
    @artem_isakow 11 місяців тому +5

    Thanks to your series of videos on neural networks, I was able to pass the entrance exam for PhD program at St. Petersburg State University.

    • @statquest
      @statquest  11 місяців тому +4

      Congratulations!!! TRIPLE BAM!!! :)

  • @luistalavera6392
    @luistalavera6392 Рік тому +1

    Man, this is awesome. I wasn't understanding anything about RNNs in my course but thanks to this video is all clear now.
    Thank you Josh Stamer :D

  • @Ahmad_Alhasanat
    @Ahmad_Alhasanat Рік тому +3

    I was looking for a small thing in RNN, but your way of explanation forced me to keep watching the entire video! and I subscribed to your channel!!

    • @statquest
      @statquest  Рік тому +2

      Hooray! Thank you very much! :)

  • @anashaat95
    @anashaat95 Рік тому +8

    Very high level explanation. Waiting for the next video on "Long-short Term Networks". Thank you so much.

  • @8bitascii464
    @8bitascii464 Рік тому +1

    They way you explained RNNs made me so excited for LSTMs. Can‘t wait to see it!

  • @rafaelhenrique2186
    @rafaelhenrique2186 Рік тому +1

    Excellent video as always, professor! I can't wait for a video explaining PARTIAL LEAST SQUARES!!

    • @statquest
      @statquest  Рік тому

      I've got that on the to-do list.

  • @JulietNovember9
    @JulietNovember9 Рік тому +1

    Oh man! This has been super tough for me to wrap my head around. I knew this was going to be a great weekend! Thank you for the drop! :D

  • @svensvensson3679
    @svensvensson3679 24 дні тому +1

    Our lecturer at the uni recommended us this video. I am amazed how simply it is put. Great job! Both funny and informative ❤

  • @charlescoult
    @charlescoult Рік тому +2

    This explanation covers some very important points that were missed in several other lectures I've watched on this subject. Thank you for clearing things up for me.

    • @charlescoult
      @charlescoult Рік тому +2

      For example, the note at 10:31

    • @statquest
      @statquest  Рік тому +1

      Thank you! Yes, that little detail is important, but often glossed over.

  • @waizwafiq9481
    @waizwafiq9481 Рік тому +65

    Amazing video as always, professor! I cant wait for the video on LSTM

    • @statquest
      @statquest  Рік тому +15

      You and me both!

    • @usamsersultanov689
      @usamsersultanov689 Рік тому

      @@statquest when it comes to application of RNN the LSTM is sometimes a must to have:) that’s why it would be great to have clearly explanation of LSTM. But these are little things. In any case, thank you very much for the valuable knowledge that we can get here.

    • @statquest
      @statquest  Рік тому +13

      @@usamsersultanov689 I hope to have a video on LSTMs soon.

    • @james199879
      @james199879 Рік тому +5

      @@statquest One on Transformers and their variations would be even greater :D

    • @statquest
      @statquest  Рік тому +13

      @@james199879 That's the master plan, but we'll get there one step at a time.

  • @manishnarang6490
    @manishnarang6490 Рік тому +31

    Really looking forward to your LSTM video.. You are a very good teacher !!

    • @statquest
      @statquest  Рік тому +2

      Thank you!

    • @WonPeace94
      @WonPeace94 Рік тому +5

      @@statquest when will you make the next vid ? i have exam in two weeks and i need your LSTM video

    • @statquest
      @statquest  Рік тому +2

      @@WonPeace94 :)

  • @KayYesYouTuber
    @KayYesYouTuber Рік тому +2

    Hi Josh, You are the best. Nobody has explained exploding gradient like you have, Thank you

  • @BrunoJr09
    @BrunoJr09 Рік тому +1

    OMG, Finally I understand Vanishing Exploding Gradient, Thank you StatQuest!

    • @statquest
      @statquest  Рік тому +1

      HOORAY!!! Thanks for supporting StatQuest!!! TRIPLE BAM! :)

  • @DavidBlayvas-wo4lj
    @DavidBlayvas-wo4lj 7 місяців тому +1

    You're gonna carry me through my neural networks class, what a godsend

  • @stephaniexu2853
    @stephaniexu2853 Рік тому +1

    Such a great explanation!! Will be watching as many of your other videos as I can while we wait for the next one :))

  • @CodingwithRayyan
    @CodingwithRayyan 16 днів тому +2

    This is not fair, I literally am addicted to your style of teaching and find it quite hard to learn from other sources now.

    • @statquest
      @statquest  16 днів тому

      Hopefully, in the long term, what you learn from these videos will make it easier to understand other sources. At least, that's starting to happen for me. It's still hard, though.

  • @santiagocalvo
    @santiagocalvo 2 місяці тому +1

    honestly your channel is one of if not the best channel on all youtube, thank you so much for this!

  • @saharshayegan
    @saharshayegan Рік тому +1

    This was the best explanation I've heard for RNNs!

  • @Smartmoneyrisk
    @Smartmoneyrisk Місяць тому +16

    i come to listen to " peep poop poop"

  • @Naveedahmed-bq5iz
    @Naveedahmed-bq5iz Рік тому +1

    Amazing, This is one best and coolest learning tutorial i have watched ever, great work Josh, keep it up. Thanks

  • @SeV5410
    @SeV5410 Рік тому +1

    Awesome! Thank you, once again, for such a clean and didactic explanation !!

  • @v-sig2389
    @v-sig2389 Рік тому +2

    Thank you so much 😭
    People like you are the real mvp of humanity !

  • @anonymousertugrul5858
    @anonymousertugrul5858 3 місяці тому +1

    I like the way how clearly and easily you explain concepts. Thank you very much!

    • @statquest
      @statquest  3 місяці тому

      You're very welcome!

  • @kirannbhavaraju5978
    @kirannbhavaraju5978 Рік тому +3

    This is the CLEAREST explanation of RNNs.

  • @gabbye165
    @gabbye165 Рік тому +1

    12:22 is probably the cutest bam I've heard
    Also thank you for your videos! They have definitely been helping me get through my Bioinformatics grad course. You are AWESOME

    • @statquest
      @statquest  Рік тому +1

      Thank you so much and good luck with your course! :)

  • @Raulvic
    @Raulvic Рік тому +1

    Thank you for sharing 🙂 super excited for the transformers statsquest!

  • @osamahabdullah3715
    @osamahabdullah3715 Рік тому +1

    literally before I see your video, I made a like, that much I trust your information and knowledge , thank you for your time and effort to explain this to us

  • @harishbattula9881
    @harishbattula9881 Рік тому +1

    Thanks a lot Josh. Every concept explained by you is a BAM!!!!!!!!!!

  • @fulcrumthewhite
    @fulcrumthewhite Рік тому +2

    Very hyped for the video transformers ! Keep up the good work, it's amazing how good it is!

  • @zeljkobalanovic8900
    @zeljkobalanovic8900 Рік тому +1

    That intro was sick. I smashed like button immediatelly :D

  • @amirpourmand
    @amirpourmand Рік тому +1

    Best explanation I've seen from RNNs. Thanks.

  • @lorenagalvan7497
    @lorenagalvan7497 8 місяців тому +1

    Excelente proyecto! no pense que con dibujos fuera tan entretenido e informativo. Definitivamente un muy buen video para comenzar!

    • @statquest
      @statquest  8 місяців тому +1

      Muchas gracias! :)

  • @indusairaman2126
    @indusairaman2126 Рік тому +2

    U have an amazing way of explaining with adlibs loved it and thank you so much as I was not able to understand at all but now it is very clear

  • @wongkitlongmarcus9310
    @wongkitlongmarcus9310 3 місяці тому +1

    Josh, you are the person who make ML theory so understandable!

  • @chaitanyasharma6270
    @chaitanyasharma6270 Рік тому +9

    you definitely are the best teacher for machine learning and deep learning

  • @sheltonsong6120
    @sheltonsong6120 Рік тому +2

    Clearly explained the difference between RNN and normal network, gradient vanishing/exploding! Looking forward to the LSTM and Transformer videos!!!

  • @giorda77
    @giorda77 2 місяці тому +1

    Clear as day!!! Hooray!!!! Thank you Josh

  • @mohammadahmedbasri3067
    @mohammadahmedbasri3067 Рік тому +3

    Thank you for this amazing explanation! Waiting for the video on LSTM! :)

  • @cecilia-cg3he
    @cecilia-cg3he 8 місяців тому +1

    Muchas gracias por traducirlo, es un muy buen material❤

  • @chriskong7418
    @chriskong7418 5 місяців тому +1

    Love the little embarrassing singings during the videos. Subscribed. Great videos!

  • @krishnaphanindra1841
    @krishnaphanindra1841 6 місяців тому +1

    Beautiful and succinct explanations!! So glad I found your channel....lots of love

  • @mostafamarwanmostafa9975
    @mostafamarwanmostafa9975 Рік тому +1

    Thank YOUUU Clearly explained !! I have been struggling with it !

  • @sushankmishra53
    @sushankmishra53 2 місяці тому +1

    With this level of simplicity in teaching, even a high schooler could grasp these concepts, probably quicker than me!
    Scared of the future now....

  • @ZaidAlhusainy
    @ZaidAlhusainy Рік тому +7

    Your channel should be mandatory for all universities teaching AI 💖

  • @mermich
    @mermich 8 місяців тому +1

    You graced upon us as a stats saviour :))) Send love from Australia

    • @statquest
      @statquest  8 місяців тому

      Awesome! Thank you!

  • @broccoli322
    @broccoli322 Рік тому +1

    Im a simple man, I see statquest, I click like. Can't wait for the videos on transformers.

  • @deepikasheshabutter4790
    @deepikasheshabutter4790 21 день тому +1

    i literally was having a menatal breakdown coz i was unable to understand things. your video helped me a lot and also brought a smile on my face :))

  • @solotop5916
    @solotop5916 Місяць тому +1

    Dude that DOUBLE BAMM and TRIPLE BAMMM kills me. Actually fun way to get info. Also greate video very easy to understand

  • @maximus2978
    @maximus2978 5 місяців тому +1

    You are insane Man, very clear and understandable explaination!! Thanks a ton 🎉

  • @chelvynchristsonimmanuel1453
    @chelvynchristsonimmanuel1453 Рік тому +1

    Amazing explaination with simple, easy-absorb, attractive method and but still pursue clear concept. 🙂 Kabaam... nice job

  • @qwertz2167
    @qwertz2167 Рік тому +2

    True Hero. I have an exam on 29th about rnns, lstms and transformers.

  • @sinarokhideh6794
    @sinarokhideh6794 Рік тому

    KA-BAAAM! Thank you for all these amazing videos. I wish you had different series about CNNs and RNNs separately.

    • @statquest
      @statquest  Рік тому +1

      If you want to learn about CNNs, see: ua-cam.com/video/HGwBXDKFk9I/v-deo.html

    • @sinarokhideh6794
      @sinarokhideh6794 Рік тому

      @@statquest How could I not have seen this?! By different series, I mean it would be great if you could create more videos covering each of these topics in more detail. But of course, you've already done so far, and I'm so grateful to you for sharing your knowledge in such a good way.

  • @safiyajd
    @safiyajd Рік тому +1

    Josh, you are amazing! Thank God you exist

  • @fmailscammer
    @fmailscammer 11 місяців тому +2

    Very well explained, I’ll go watch the rest! Kaboom!

  • @lukastoral5059
    @lukastoral5059 3 місяці тому +1

    Thank you for making these videos! They are very helpful.

    • @statquest
      @statquest  3 місяці тому

      TRIPLE BAM!!! Thank you so much for supporting StatQuest!!! :)

  • @NockyLucky
    @NockyLucky 2 місяці тому +1

    Really liked the video. Quite creative and straight to the point!

  • @MuhammadShahzad-dx5je
    @MuhammadShahzad-dx5je 8 місяців тому +1

    Thanks so much, sir for such useful content. Huge Respect!

  • @curiosityspace8635
    @curiosityspace8635 4 місяці тому

    Oh man i literally watch his videos like a web series its very fun and very easy to understand thank you very much sir !!!!😭😭

  • @loreii1982
    @loreii1982 11 місяців тому +1

    I saw a light turning on my head! great video

  • @TheGibberingGoblin
    @TheGibberingGoblin 8 місяців тому +1

    ... you sir are a timeless legend!

  • @sarahk13peace
    @sarahk13peace Рік тому +1

    OMG I love you for your teaching style

  • @TPLCompany
    @TPLCompany Рік тому +2

    Great video!! I can't wait for LSTM and transformer videos!

  • @asmersoy4111
    @asmersoy4111 Рік тому +1

    Kaboom!! Very informative. Thank you.

  • @kamesh7818
    @kamesh7818 9 місяців тому +1

    Awesome video series, very helpful. Thanks Josh

    • @statquest
      @statquest  8 місяців тому

      Glad it was helpful!

  • @lorryzou9367
    @lorryzou9367 Рік тому +6

    Very impressive video! I always explain concepts in a simple way. Could you make more videos about deep learning?

    • @statquest
      @statquest  Рік тому +4

      I'm working on them as fast as I can.

  • @iReaperYo
    @iReaperYo Рік тому +3

    You don’t understand how good the timing of this is. Been struggling to explain the concept in detail on my MSc project.
    Are you are doing a video on LSTM / GRU soon ??

  • @yulogs.
    @yulogs. Рік тому +1

    the wait is over. Thank you Josh :)

  • @justLu__
    @justLu__ 4 місяці тому +1

    Hey, hopefully this will safe my Deep Learning exam. And... love the sound effects.

  • @WALID0306
    @WALID0306 6 місяців тому +1

    Gracias !! Estuvo excelente ✨✨✨✨ Bendiciones

  • @brandonso5477
    @brandonso5477 8 місяців тому +1

    why are you master of everything???? I have been watching your video for two years through out my university course

    • @statquest
      @statquest  8 місяців тому

      Ha! Thank you! :)

  • @akashkp9013
    @akashkp9013 6 місяців тому +1

    Thank you Josh , this was awesome

    • @statquest
      @statquest  6 місяців тому

      Glad you enjoyed it!

  • @hasansoufan
    @hasansoufan Рік тому +1

    You're the best, thanks from the heart❤

  • @hamzaahmad1224
    @hamzaahmad1224 7 місяців тому +1

    Thank you for the video. I believe it was a clear explanation.

    • @statquest
      @statquest  7 місяців тому

      Glad it was helpful!

  • @AI_Financier
    @AI_Financier Рік тому +1

    Great video, you must become the President of the ClearlyExplainedLand

  • @mahu1203
    @mahu1203 10 місяців тому +1

    Thank you so much. You make great videos... Just great teaching. Thanks alot.

    • @statquest
      @statquest  10 місяців тому

      Glad you like them!

  • @Tapsthequant
    @Tapsthequant Рік тому +1

    Been waiting and waiting, the waiting is BAM!!!

  • @GREENEYESSASHARONIN
    @GREENEYESSASHARONIN Рік тому +1

    Your videos are wonderful love your humor ! :)

  • @joaoperin8313
    @joaoperin8313 Рік тому +1

    Mais um excelente vídeo. Parabéns

  • @dikshagupta3500
    @dikshagupta3500 Рік тому +1

    Your book on Machine Learning was excellent. I am looking forward to reading your book on deep learning.

  • @andyjunghyunkim6805
    @andyjunghyunkim6805 Рік тому +1

    Hi Josh. First of all, I really appreciate your videos. None has ever explained this much clearly and easily. I will watch all of yours in a week.
    The sad news is that LSTM is closely related to my Master's project for computational cognitive neuroscience. Can't wait your LSTM videos 😢. Can you tell me when your LSTM video will be posted? Or at least, can you recommend resources to understand LSTM? Does "The StatQuest Illustrated Guide to Machine Learning" have contents of RNN and LSTM or just plain neural networks?

    • @statquest
      @statquest  Рік тому +2

      LSTM should be out in a few weeks. Unfortunately the book does not cover them.

  • @mohammedjaddoa9783
    @mohammedjaddoa9783 Рік тому +1

    appreciate your effort & work,THANK YOU

  • @cristianonesti3976
    @cristianonesti3976 Рік тому +2

    Amazing video look forward for LTSM one!

  • @cat-a-lyst
    @cat-a-lyst 11 місяців тому +1

    you are vry very very very very very brilliant teacher ! you are my low variance and low bias position.

  • @felipela2227
    @felipela2227 5 місяців тому +1

    El video estuvo muy bien explicado, lo entendí facilmente. Gracias

    • @statquest
      @statquest  5 місяців тому

      Muchas gracias! :)

  • @matheusmoraes2316
    @matheusmoraes2316 Рік тому +4

    Can’t believe I was working with a NLP problem at my job using LSTMS and then you just published a video about RNNs. You’re a lifesaver!
    By the way, would you consider doing a SOM or a Boltzmann Machine algorithm video in the future? Love from Brazil

    • @statquest
      @statquest  Рік тому

      I'll keep those topics in mind.

  • @user-gj4bj3eb9k
    @user-gj4bj3eb9k 7 місяців тому +1

    u are king my friend
    perfect explanation with simple example

  • @franciscoruiz6269
    @franciscoruiz6269 Рік тому

    Man! You're the best youtuber over the world! My total respect for you!
    Have you ever thought showing us here a python code RNN and LSTM NN :D?

    • @statquest
      @statquest  Рік тому +1

      Thanks! We might use Lightning for LSTM and Transformers.

  • @yeohweixiangbenjy1983
    @yeohweixiangbenjy1983 Рік тому +1

    All love. Looking forward to LSTM video.

    • @statquest
      @statquest  Рік тому +1

      Thanks! The LSTM video should be out on Monday.

  • @BlizzgamesAlive
    @BlizzgamesAlive Рік тому +1

    this videos just get better and better