Functions & Programming Concepts · Level 2 of 5
Cost Function
A task-dependent name for an objective or aggregated loss.
Authors use cost and loss inconsistently, so the formula matters more than the label.
Listen to the definition and example
Audio transcript
Cost Function. A task-dependent name for an objective or aggregated loss. Authors use cost and loss inconsistently, so the formula matters more than the label. For example: A training procedure averages per-example penalties into one scalar.
Explore this concept
Why it matters
This helps you distinguish a computation’s contract, inputs, outputs, and behavior.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.