August 2025
Beginner
236 pages
7h 51m
English
|
9 |
Another popular classification technique in machine learning is k-nearest neighbors (k-NN). As a supervised learning algorithm, k-NN classifies new data points based on their position to nearby data points.
In many ways, k-NN is similar to a voting system or a popularity contest. Imagine you’re the new kid at school and you need to know how to dress in order to fit in with the rest of the class. On your first day at school, you see six of the nine students sitting closest to you with their sleeves rolled-up. Based on numerical supremacy and close proximity, the following day you also make the decision to roll up your sleeves.
Let’s now look at another example.
Figure 26: An example of k-NN clustering used ...
Read now
Unlock full access