Press escape to exit fullscreen

{{sketch.instructions}}

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

{{$t('general.by')}}
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('general.eg',["mouse, keyboard"])}}
{{$t('general.eg',["visualization, fractal, mouse"])}}
{{$t('general.learnMoreAbout')}} Creative Commons
{{$t('general.joinPlus')}}
{{$t('sketch.sourceNotVisible')}}
{{$t('sketch.privateURLDescription')}}
{{$t('sketch.privateURL-pleaseSave')}}
  • {{v.title}}

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

  • {{co.title}}