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
How to do it?
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 ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.