RMSprop Optimizer Explained in Detail | Deep Learning

Learn With Jay · Beginner ·📐 ML Fundamentals ·4y ago

About this lesson

RMSprop Optimizer Explained in Detail. RMSprop Optimizer is a technique that reduces the time taken to train a model in Deep Learning. The path of learning in mini-batch gradient descent is zig-zag, and not straight. Thus, some time gets wasted in moving in a zig-zag direction. RMSprop Optimizer increases the horizontal movement and reduced the vertical movement, thus making the zig-zag path straighter, and thus reducing the time taken to train the model. The concept of RMSprop Optimizer is difficult to understand. Thus in this video, I have done my best to provide you with a detailed Explanation of the RMSprop Optimizer. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ ▶ Momentum Optimizer in Deep Learning: https://youtu.be/Vce8w1sy0e8 ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ ▶ Watch Next Video on Adam Optimizer: https://youtu.be/tuU59-G1PgU ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ ✔ Improving Neural Network Playlist: https://www.youtube.com/watch?v=SOI39DEHGSk&list=PLuhqtP7jdD8DKUBtucBD0mGS7y0rT9alz&t=0s ✔ Complete Neural Network Playlist: https://www.youtube.com/watch?v=vtx1iwmOx10&t=284s ✔ Complete Logistic Regression Playlist: https://www.youtube.com/watch?v=U1omz0B9FTw&list=PLuhqtP7jdD8Chy7QIo5U0zzKP8-emLdny&t=0s ✔ Complete Linear Regression Playlist: https://www.youtube.com/watch?v=mlk0r... ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ Timestamp: 0:00 Agenda 1:42 RMSprop Optimizer Explained 5:37 End ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ Subscribe to my channel, because I upload a new Machine Learning video every week: https://www.youtube.com/channel/UCJFA...

Full Transcript

rms prop is an optimization algorithm which speed ups the training of our model if you already know about mini batch gradient descent then you will know that in the mini batch gradient descent the weight updation takes place in this zigzag manner and what happens is that a lot of times get wasted in moving in the vertical direction and taking the zigzag path instead of just moving directly straight towards the local minima so optimization algorithms are those algorithms which speed up the learning of the model and make this path much more straighter instead of taking the zigzag path and one of such algorithm is aramis prop which works very well rms prop stands for root mean square propagation and that is what we are going to understand in this video and in the previous video i also talked about one of such optimizer algorithm which is known as momentum or mini batch korean descent with momentum or stochastic gradient descent with momentum make sure to watch that video out first because that video will give you a much better understanding of how the optimization works in deep learning it also gives you an idea about exponentially weighted moving average which we are going to use in this video as well in rms prop as well so make sure to check that out video first if you haven't already i will provide its link down in the description box or you can find it slick by clicking on the upper i button and if you are new to this channel consider subscribing because i upload new machine learning videos just like this every week in which i provide mathematical details behind every single model as well as the intuition behind those so hit the red subscribe button also the bell icon and without further ado let's get started with this video we know that the weight updation in the gradient descent is given by these two equations now in rms prop instead of this dw what we do is that we take dw divided by square root of sdw and similarly dv divided by square root of sdb here this sdw is given by the exponential weighted average of dw square which will be equal to beta times of sdw previous plus 1 minus of beta multiplied by d w squared and similarly s d b will be equal to beta times of s d p previous plus 1 minus beta dv square now let's see what will happen by dividing this term with square root of sdw now in the mini batch gradient descent as the steps are like this zigzag path what is happening is that it is taking a big movement in the vertical direction while a very little movement in the horizontal direction let's say the vertical direction is of the direction of w and the horizontal direction is that of direction b here i am taking here i am assuming that w is a single parameter and not of matrix of parameters and similarly b is a single parameter and not a matrix of the parameters so what will happen is that as this movement in the vertical direction is higher this d w is going to be higher and thus the sdw is going to be higher and as we are dividing it with the square root of sdw which is a higher this overall quantity is going to be lower thus the w is going to be updated by a smaller quantity thus this vertical movement will reduce and as the movement in the b direction is smaller this db is going to be smaller thus sdw is going to be smaller and as we are dividing it with its square root this entire quantity is going to be higher thus the movement in the horizontal direction is going to be higher and thus the net movement is going to be much more straighter and much more larger towards the local minima thus we are going to have a faster training of our model and as we are taking the square of dw and then taking its root it this algorithm is called root mean square propagation now there is one more thing to note here it is possible that the value of the either sdw or sdb can go much much smaller and if its value is highly smaller and or very close to zero then what will happen is that we will be dividing it with the 0 and thus this entire value will shoot up very highly and thus we might be encountering the problem of overshooting thus to overcome that what we do is that we add this term epsilon to this and this and the value of the epsilon will be taken as 10 power minus 8. so we add this epsilon so that the entire value does not go very small and thus we don't end up overshooting also the value of this hyper parameter beta is usually taken as 0.999 so with these two chain so we can implement rms prop with just these two changes and it will speed up the training of our model now we need not to implement these from scratch but we can use a programming frameworks like tensorflow and pi torch with the help of that we just need to mention that we want to use rms prop and pass the value of the beta and the epsilon in it and it will automatically implement it for us in the background so i hope that i made this concept of rms prop clear to you if so please hit the like button and share this video among your friends who can also benefit from this and in the next video we will look at another such optimization algorithm which is even powerful than the root mean square propagation and it is called atom optimization atom optimization is formed by combining rms prop as well as the momentum so we will look at that optimization in the next video so i will see you in the next one

Original Description

RMSprop Optimizer Explained in Detail. RMSprop Optimizer is a technique that reduces the time taken to train a model in Deep Learning. The path of learning in mini-batch gradient descent is zig-zag, and not straight. Thus, some time gets wasted in moving in a zig-zag direction. RMSprop Optimizer increases the horizontal movement and reduced the vertical movement, thus making the zig-zag path straighter, and thus reducing the time taken to train the model. The concept of RMSprop Optimizer is difficult to understand. Thus in this video, I have done my best to provide you with a detailed Explanation of the RMSprop Optimizer. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ ▶ Momentum Optimizer in Deep Learning: https://youtu.be/Vce8w1sy0e8 ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ ▶ Watch Next Video on Adam Optimizer: https://youtu.be/tuU59-G1PgU ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ ✔ Improving Neural Network Playlist: https://www.youtube.com/watch?v=SOI39DEHGSk&list=PLuhqtP7jdD8DKUBtucBD0mGS7y0rT9alz&t=0s ✔ Complete Neural Network Playlist: https://www.youtube.com/watch?v=vtx1iwmOx10&t=284s ✔ Complete Logistic Regression Playlist: https://www.youtube.com/watch?v=U1omz0B9FTw&list=PLuhqtP7jdD8Chy7QIo5U0zzKP8-emLdny&t=0s ✔ Complete Linear Regression Playlist: https://www.youtube.com/watch?v=mlk0r... ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ Timestamp: 0:00 Agenda 1:42 RMSprop Optimizer Explained 5:37 End ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ Subscribe to my channel, because I upload a new Machine Learning video every week: https://www.youtube.com/channel/UCJFA...
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
SMOTE from scratch: fixing imbalanced data without just copy-pasting rows
Learn to implement SMOTE from scratch to fix imbalanced data, a crucial technique for building robust fraud detectors and other classifiers
Dev.to · Devanshu Biswas
📰
Building a Production Audio Separation API with Meta’s Demucs
Learn to build a production-ready audio separation API using Meta's Demucs for vocal isolation and podcast cleanup
Medium · Machine Learning
📰
Co-Training — Two Models That Grade Each Other’s Homework
Learn co-training, a semi-supervised learning technique where two models grade each other's homework to improve performance
Medium · Python
📰
The Best Developers Don't Know Everything. They Know How to Learn.
Top developers don't know everything, but they excel at learning and adapting to new technologies
Dev.to · Stack Horizon

Chapters (3)

Agenda
1:42 RMSprop Optimizer Explained
5:37 End
Up next
We just figured out how AI actually works (J-Space)
Matthew Berman
Watch →