Predictive Models

Context: FIT1043_MOC Β· the Analysis stage of the value chain Β· learnt by Machine Learning Β· evaluated on held-out test data

Quick Revision

  • 🎯 Objective: map input features β†’ an output prediction βž” classifier (categorical) or regression (real-valued).
  • πŸ“¦ Core Components: model (understand + predict) | prediction type (binary/categorical/real/vector) | train vs test.
  • ⚑ Key Constraint: a model is only as good as its performance on unseen test data β€” never the training data it memorised.

πŸ“ How It Works

1. What is a Model?

  • Two purposes βž” (1) help us understand how something works, (2) help us predict the unknown.
  • Predictive model βž” any model that makes a prediction, usually from a set of features describing an object.
  • Mechanism βž” uses equations/rules to map input features β†’ output values.

2. Prediction Types

  • Binary βž” spam / not-spam.
  • Categorical βž” bass / tuna / other.
  • Real value βž” the age (or weight) of the fish.
  • Vector of reals βž” probabilities (e.g. P(bass), P(tuna)).
  • Classifier vs regression βž” binary/categorical output β‡’ classifier; real-valued output β‡’ regression (others: ranking, translation).

3. Training & Testing

  • Learnt from examples βž” built from training data, then applied to new instances.
  • Feature space βž” each training instance is a point; class shown by colour; many classifiers partition the space into same-class regions.
  • Reality βž” classes overlap and there are many feature dimensions (some more useful than others).
  • Testing βž” evaluate on test instances not used in training β€” that measures real predictive ability.

βš–οΈ Core Decision Matrix

OutputModel typeExample
binary / categoricalclassifierspam?; fish species
real valueregressionfish age; car price
vector of reals(prob.) classifierP(bass), P(tuna)

When It Flips: more training data improves test performance, and (with enough data) more features helps too β€” but only up to a limit; beyond it, extra features stop paying off.

🧠 Active Recall