Press escape to exit fullscreen


CC {{sketch.licenseObject.short}}

Archived Sketch

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

View Source Code

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.
{{$t('',["mouse, keyboard"])}}
{{$t('',["visualization, fractal, mouse"])}}
{{$t('general.learnMoreAbout')}} Creative Commons
  • {{v.title}}

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

  • {{co.title}}