A fork of {{sketch.parentSketch.title}} by {{sketch.parentUser.fullname}}.

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Click record or press 'R'
to start/stop recording (max. 10 secs)

Click capture
to take a screenshot

K-nearest Neighbours

Visualization of kNN's decision boundary in real-time. - Tap to add a new point. - Tap red or blue rectangles at the top to choose the class label to which new points are assigned. - Use --, ++ to adjust the number of nearest neighbours. Note that the real decision boundary is not jagged like what you see. That is just because of my naive implementation.
e.g. "mouse, keyboard"
e.g. "visualization, fractal, mouse"
learn more about Creative Commons
You can share your sketch with this URL even if it is set hidden above
Please save your sketch to create private URL
  • {{v.title}}

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}