Learning Theory and Loss Functions

Context: FIT1043_MOC · how we judge a learnt model’s quality · turns prediction error into a loss · the objective regression minimises

Quick Revision

  • 🎯 Objective: measure how good a prediction is ➔ convert error into quality via a loss function.
  • 📦 Core Components: error (the miss) → loss (bad = positive) / gain (good = positive).
  • ⚡ Key Constraint: error is not quality — it’s a distance; quality is a function of error, and the loss function decides how a given error is penalised.

📝 How It Works

1. Learning Theory & Truth

  • Learning theory ➔ the subfield of AI studying the design and analysis of machine learning.
  • The “truth” ➔ for a single case (e.g. one heart-disease patient) truth is measurable, but the true model would need infinite data and is a dynamic (moving) target — so it’s never fully known.

2. Quality, Loss, Gain, Error

  • Quality/value ➔ the consequence of an action (a prediction is an action); measured on a positive or negative scale (William Tell’s apple shot: value varies with where the arrow strikes).
  • Losspositive when things are bad, negative/zero when good.
  • Gain ➔ positive when good, negative when bad.
  • Error ➔ a measure of “miss” (often a distance); = exactly right. Not itself a measure of quality.

3. Loss Functions (error → quality)

⚖️ Core Decision Matrix

TermSign conventionMeaning
Loss+ when badpenalty for a poor outcome
Gain+ when goodreward for a good outcome
Error0 = perfectdistance of prediction from actual (not quality)

When It Flips: the choice of loss function shapes the model — square-error punishes large misses much harder than absolute-error (it squares them), so it's more outlier-sensitive; hinge-error caps the penalty at 1.

🧠 Active Recall