Back to Course
Neural Networks: From Scratch
Module 2 of 12
2. The Loss Function
1. How wrong are we?
To learn, we must measure error. We use MSE (Mean Squared Error) for regression.
$$ L = \frac{1}{N} sum (y_{pred} - y_{true})^2 $$
2. The Landscape
Imagine a mountain range. The height is the Loss. Our goal: Find the lowest valley (Global Minimum).