Model Training · Level 2 of 5
Loss Function
A rule assigning a numerical penalty to predictions or model behavior.
Optimization uses this signal, which may differ from the final evaluation metric.
Example
A squared-error rule penalizes a prediction far from its target.
Listen to the definition and example
Audio transcript
Loss Function. A rule assigning a numerical penalty to predictions or model behavior. Optimization uses this signal, which may differ from the final evaluation metric. For example: A squared-error rule penalizes a prediction far from its target.
Explore this concept
A useful analogy
A scoring rule that tells training how costly a mistake is.
Technical detail
A supervised objective often averages ℓ(f_θ(x_i),y_i) over examples, optionally adding regularization. Differentiability affects optimizer choice.
Common misconception
The loss being minimized need not be the metric ultimately reported.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.