Codele / Machine learning: one neuron to deep learning
Loss: measuring how wrong
To improve a model, the computer needs one number that says how bad its guesses are. That number is called the loss, and smaller is better.
- The miss for one example is the guess minus the truth. It can be positive or negative.
- Squaring a miss makes it positive and makes big misses count much more than small ones.
- The loss is the average of the squared misses, also called the mean squared error: one number for how wrong the model is. Smaller is better.
- Plot the loss for each weight and you get a bowl. The best weight sits at the bottom.
Loading the playable lesson…