← Advanced Coding

Learning from examplesPremium

This lesson is part of Premium

Instead of writing rules, machine learning learns from examples. The simplest method is nearest neighbour: to label something new, find the most similar example you already know and copy its label. Each example here is { x: 3, label: "small" }.

Free lessons are marked on the lesson map. Premium unlocks the rest of the path, including the boss levels and all of the Game Projects.