Loading KNN visualizer interface.
Loading KNN visualizer interface.
Interactive Learning Lab
Place points, compare neighbors, and learn how each setting changes the classifier behavior.
Click the canvas to place a test point.
Place your first test point
Click anywhere on the chart to run a prediction.
KNN classifies each test point by checking the 3 nearest training points and taking a vote. In enhanced mode, the connections animate so the decision path is easier to follow.
Click to add and classify a test point.
Higher confidence means a cleaner local neighborhood.
Change K to compare smooth vs sensitive behavior.
Try boundary areas where classes overlap.