Hello! Today, we will learn about a powerful technique that makes our Gradient Descent move faster, like a ball rolling down a hill. We call this "Momentum".
Momentum improves our Gradient Descent. How does it do that? Remember how a ball on top of a hill starts rolling down? If the slope is steep, the ball picks up speed, right? That's what momentum does to our Gradient Descent. It makes it move faster when the slope (our 'hill') points in the same direction over time.
Now let's visualize how momentum aids in faster convergence (which means getting to the answer quicker) in the following code snippet:
Here, we implement plain and momentum gradients within one loop and track the history of weight changes to visualize them later.

