Machine Learning Styles (Supervised vs Unsupervised)
Context: FIT1043_MOC Β· how Machine Learning algorithms learn Β· split by whether the data is labelled Β· supervised builds predictive models
Quick Revision
- π― Objective: classify an algorithm by its data β supervised (labelled β predict from ) vs unsupervised (unlabelled β find structure).
- π¦ Core Components: supervised β classification + regression | unsupervised β clustering + association.
- β‘ Key Constraint: the deciding question is simply βis the data labelled?β β that alone picks the style and the task family.
π How It Works
1. Supervised
- Setup β all data labelled; learn to predict output from input by approximating the mapping well enough to predict for new .
- Tasks β classification (output a category, e.g. Red/Blue fish) Β· regression (output a real value, e.g. dollars/weight).
- Algorithms β linear regression (regression); random forest (both); SVM (classification).
2. Unsupervised
- Setup β all data unlabelled; learn the inherent structure / distribution of the input to learn more about it.
- Tasks β clustering (discover natural groupings, e.g. customers by purchasing behaviour) Β· association (rules describing large parts of the data, e.g. buy X β also buy Y).
- Algorithms β k-means (clustering); Apriori (association-rule learning).
βοΈ Core Decision Matrix
| Style | Data | Tasks | Example algorithms |
|---|---|---|---|
| Supervised | labelled | classification, regression | linear regression, random forest, SVM |
| Unsupervised | unlabelled | clustering, association | k-means, Apriori |
When It Flips: supervised = "learn a mapping to a known answer"; unsupervised = "learn the structure with no answer key" β classification/regression need labels, clustering/association do not.
π§ Active Recall
Grouping customers by purchasing behaviour vs predicting a house price β which style/task is each, and why?
Answer
- Short answer: Grouping customers = unsupervised clustering (no labels, find structure); predicting price = supervised regression (labelled real-valued target).
- Why: Labelled? β a known target β supervised; no target, only structure β unsupervised.