Machine Learning
Fitting the model…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Machine Learning
Fitting the model…
Classify a point by asking the k training points closest to it. Watch the vote, the decision map for k = 1 and k = 39, what changing the units does to “closest”, and why distances stop meaning much in a thousand dimensions.
Forty labelled points: blue and orange. k-nearest neighbours does no fitting at all — it keeps the points. To classify a new point (the star), it starts by measuring how far the star is from every one of them.