What You Just Learned
In this chapter we investigated gradient descent, the most widely used algorithm to miminize loss. No matter how complicated our model and dataset are, gradient descent always works the same way: it takes a step in the opposite direction as the gradient of the loss, and keeps doing that until the gradient becomes small. To find the gradient, we took the partial derivatives of the loss with respect to w and b.
GD has a few limitations. In particular, being based on derivatives, it expects that the loss function is smooth and without gaps, so that you can calculate its derivative anywhere. Also, GD can get stuck in a local minimum, failing to reach the global minimum. To avoid those problems, we’ll try to use smooth loss functions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access