Saltar al contenido

Labs · 9618 18.1 · machine learning

Find the Groups: k-means

Place pizza shops in a town so nobody walks far. Then let k-means do it: every house joins its nearest shop, every shop moves to the centre of its houses. Watch it get stuck, and choose how many shops.

4 levelsFree bench

In the exam

Exam questions on what this lab teaches, with the points that gain marks.

9618/32 October/November 2022 · Question 74 marks

Supervised and unsupervised learning are two categories of machine learning. Describe supervised learning and unsupervised learning.

Points that gain marks

  1. Supervised: it is trained on labelled data: example inputs given with their correct outputs.
  2. Supervised: it learns from past examples and predicts outputs for new data.
  3. Unsupervised: it is given only input data, with no labels and no correct outputs.
  4. Unsupervised: it finds unknown patterns or groups in the data by itself.

In this lab: k-means is unsupervised: the houses have no labels, and the shops find the groups by themselves. The k nearest neighbours lab is supervised: every song there already has its label.

9618/32 May/June 2025 · Question 6(b)4 marks

Explain how supervised learning and unsupervised learning differ from each other.

Points that gain marks

  1. Supervised learning uses labelled data; unsupervised learning uses unlabelled data.
  2. Supervised learning needs human input first (someone labels the training data); unsupervised learning does not.
  3. With unlabelled data the outcomes are not known …
  4. … so the AI must search for hidden patterns, structures or clusters in the data.

In this lab: Here the AI searches for clusters: nobody tells the shops which houses belong together. Level 4 shows a human still chooses k, the number of groups.

9618/31 May/June 2023 · Question 2(a)4 marks

Draw one line from each machine learning category (supervised, reinforcement, deep, unsupervised learning) to its most appropriate description.

Points that gain marks

  1. Supervised learning → learns by mapping an input to an output from example input–output pairs.
  2. Reinforcement learning → learns in an interactive environment by trial and error, from its own experiences.
  3. Deep learning → copies the way the human brain processes data to make decisions.
  4. Unsupervised learning → finds patterns by itself that were not known before.

In this lab: One description is left over: sending information about errors back through the network. That is back-propagation, not a category of learning.

The question as printed in the exam paper

More real experiments

All labs →

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP