Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Loss

What is loss?

A single number measuring how wrong a model's predictions are. Training tries to make it small.

Where it is taught

Loss, a number for how wrong. Before a model can improve, "wrong" has to be turned into a single number. That number is the loss, and training is the effort to make it small.

What the lesson leaves you with

  • A loss function turns "how wrong" into one number. Lower is better.
  • Mean squared error averages the squared gaps between predictions and targets.
  • With the data fixed, the loss is a landscape over the parameters, and training looks for its lowest point.
Open the lesson

Questions

What is loss?
A single number measuring how wrong a model's predictions are. Training tries to make it small.
Where is loss used in AI?
Before a model can improve, "wrong" has to be turned into a single number. That number is the loss, and training is the effort to make it small.
What is the key idea to remember about loss?
A loss function turns "how wrong" into one number. Lower is better.
Where can I learn loss step by step?
In the lesson “Loss, a number for how wrong” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

See it in 3D on the blog

  • What is linear regression? Fitting a plane in 3D4 min

Related terms

  • Adam
  • Batch
  • Epoch
  • Gradient descent
  • Learning rate
  • Momentum