← Apps ← My Digital Space

k-Nearest Neighbors Lab

Upload your own CSV (or pick a sample dataset), set the kNN parameters — number of neighbours, distance metric, weighting, feature scaling — or simply keep the defaults, and classify directly in your browser.

1 · Data

Paste CSV instead

2 · kNN parameters

Leave everything untouched to run with the standard defaults.

Number of neighbours voting. Default 5.
Distance function. Default euclidean.
Only used when metric = minkowski.
Vote weighting. Default uniform.
kNN is scale sensitive. Default z-score.
Stratified hold-out fraction. Default 0.25.
Seed for the split shuffle.
Also plot accuracy for k = 1…max.