Open Agent School · Public worked example

Loss function: meaning and example

Welcome! Take one idea with you today.

A mathematical rule that assigns a cost to model outputs so training can seek parameter values that reduce that cost.

Picture it: Squared error penalizes a predicted duration according to its distance from the observed duration.

What is easy to mix up?

Reducing training loss does not guarantee usefulness, fairness or good performance on new examples.

Teaching example by Open Agent School. Source: Google - Machine Learning Glossary.