JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
k-Nearest Neighbours
What is it?
Why/Why not use it?
How to do it?
Work log
More
Share
Explore
What is it?
Building a kNN model consists only of storing the training data set
To make predictions for a new data point, the algorithm finds the closest data points the training data set
If using more than one neighbour, use the majority class among the nearest neighbors to assign label
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.