Machine Learning Styles (Supervised vs Unsupervised)
Context: FIT1043_MOC, FIT2086_MOC Β· how Machine Learning algorithms learn Β· split by whether the data is labelled Β· supervised builds predictive models Β· FIT2086 W11 unsupervised toolkit β k-means Clustering, Mixture Models (EM Algorithm), Missing Data Imputation and Recommender Systems
Quick Revision
- π― Objective: classify an algorithm by its data β supervised (labelled β predict from , model ) vs unsupervised (unlabelled β find structure, often by modelling ).
- π¦ Core Components: supervised β classification + regression | unsupervised β clustering + association (+ FIT2086: imputation, recommender systems).
- β‘ 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).
3. The Probabilistic View (FIT2086)
- Data matrix β items Γ attributes, with a point in -dimensional space; no attribute is nominated as the target.
- Supervised β target and explanatory β find the conditional with a chosen model form (linear regression, tree, β¦).
- Unsupervised β only β discover structure in their distribution, some methods by modelling the joint ; the fitted modelβs details reveal the structure.
- Uses β taxonomy (species of animals) Β· filling missing entries: imputation before supervised learning, recommender systems Β· image processing: noise removal, compression, analysis and recognition.
- Clustering setting β represent the data with groups, possibly latent sub-populations, with no class information β aim: discover and characterise each cluster β βintrinsic classificationβ: class labels learned from the data.
βοΈ Core Decision Matrix
| Style | Data | Tasks | Example algorithms |
|---|---|---|---|
| Supervised | labelled | classification, regression | linear regression, random forest, SVM |
| Unsupervised | unlabelled | clustering, association, imputation | k-means, mixture models, Apriori, kNN imputation |
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.
Which distribution does a supervised model target, and which does an unsupervised model target? (FIT2086)
Answer
- Short answer: supervised β the conditional ; unsupervised β structure in the joint , often by modelling it directly (e.g. a mixture model).
- Why: Nominated target or not β with a target, only how it depends on the predictors matters; without one, every attribute is part of the structure being described.