NEURAL NETS · LESSON 12 OF 278

Loss Functions

Use loss as the signal that tells training how wrong a prediction is.

What you will learn

Use loss as the signal that tells training how wrong a prediction is.

In simple words

Loss converts prediction quality into a number that training can optimise. Lower loss generally means predictions better match the labelled examples, though evaluation still checks real usefulness.

Visual explanation: Measuring the miss

Error bars show the gap from each prediction to the observed answer; their total is the loss.

WATCH THE IDEA

Measuring the miss

Playing
OutcomeInputObserved answerPredictionLoss
  1. 1Observe: Observed answer
  2. 2Transformation: Prediction
  3. 3Outcome: Loss

Observe: Observed answer. Error bars show the gap from each prediction to the observed answer; their total is the loss.

The diagram highlights Observed answer, Prediction, Loss. Use the labels to trace the main relationship from left to right.

Real-world example: Delivery-time estimates

A logistics platform predicts arrival times and must choose what error matters most.

What the team decides: Choose a loss that reflects whether late versus early estimates have different costs.

Risk to avoid: Optimising an arbitrary metric can hurt the real customer outcome.

Technical explanation

Loss converts prediction quality into a number that training can optimise. Lower loss generally means predictions better match the labelled examples, though evaluation still checks real usefulness.

Common misconception

This concept is not a guarantee of a correct outcome by itself. Its value depends on suitable evidence, careful implementation, and evaluation against the real task.

QUICK QUIZ

What does a loss function measure?

Practical application

Choose a loss that reflects whether late versus early estimates have different costs.

Key takeaway

Loss turns 'wrong' into a signal the optimiser can improve.

Next concept

Continue with Gradient Descent.

Was this lesson helpful?

Lesson discussion

Comments are reviewed before publication. Keep discussion focused on learning and do not post private information.

Loading discussion…

Your quiz answer and current lesson are saved on this device. Sign in to explore account-backed learning features.

Content version 1 · Last reviewed 2026-10-16