Question 4 of 5

What does loss measure, and what does it leave unanswered?

Two versions choose the correct question type equally often, but one has lower loss. Explain the difference before choosing a model.

You predict five deliveries and eight arrive. Measuring the error as the distance between prediction and outcome gives three. A prediction of eleven also gives three. This measure fits a task where underestimating and overestimating by the same number of deliveries are equally undesirable.

WHERE TO START

Two predictions miss the target by different amounts. What do you want to measure?

What to know before this question
Topic example · Prediction error

Move the prediction closer to the target and compare the numbers.

target = 4
prediction = 7
print(abs(target - prediction))
Line notes
  1. Set the known target value.
  2. Set one prediction.
  3. Print the distance from the prediction to the target.

How would you rate your understanding?

This is your self-assessment. Progress is saved in this browser.

Not rated yet

← Back to How a model works