JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
k-Nearest Neighbours
What is it?
Why/Why not use it?
How to do it?
Work log
More
Share
Explore
Parameter selection
Number of nearest neighbours (
k
)
Usually 3-5 works well
Distance metric
See the detailed notes on
Distance metrics
.
Euclidean distance is the default, which works well in many settings
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
Ctrl
P
) instead.