Still loading. This can take a moment on a slow connection.
Still loading. This can take a moment on a slow connection.
Unit 6 · Automated and Emerging Technologies
Teach a program to classify by giving it examples, and see how its predictions change as it learns.
Fruit 1 at the till is 5.8 cm wide and 6.4 cm tall. Which label will the program give it?
It gives a fruit the label of the example nearest to it. The distances and the regions stay hidden until you say.
Drag the fruit to see what the program says anywhere on the chart, and tap the chart to add an example there. Watch the regions, and the line where its answer changes, move as it learns.
After you check a prediction, this says why.
Try what you found on the lesson’s 32 marked questions. Practise in AI Concepts
Beyond the syllabus The syllabus does not name a way for a program to learn. Nearest neighbour, used here, is one of the simplest.
Width and height are both measured in centimetres and drawn to the same scale, so the example nearest on the chart is the nearest in the program’s sums: the distance is √(difference in width² + difference in height²). The fruit are made up, so that the lab knows what each one really is; the program is never told how. It can hold 40 examples.