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
| Output | Model type | Example |
|---|---|---|
| binary / categorical | classifier | spam?; fish species |
| real value | regression | fish age; car price |
| vector of reals | (prob.) classifier | P(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
What separates a classifier from a regression model, and why evaluate on test (not training) data?
- Hint: Output type + generalisation.
Answer
- Short answer: A classifier predicts a category (binary/categorical); regression predicts a real value. We test on unseen instances because performance on training data doesnβt show whether the model generalises.
- Why: Held-out test β a model can memorise training points; only new data reveals true predictive quality.
How do a classifier's decisions relate to the feature space?
- Hint: Region partitioning.
Answer
- Short answer: Each instance is a point in feature space; classification algorithms divide that space into regions of the same class, so a new point is labelled by the region it lands in.
- Why: Overlap + dimensionality β real classes overlap and span many features, making clean separation hard.