ML
beginner
K-Nearest Neighbors (KNN) 3D
The simplest ML algorithm - classify points based on their nearest neighbors. Watch majority voting in action in 3D space!
algorithms.live
KNN Parameters
3
Predicted Class: Class C (Blue)
Votes:
Red: 0 | Green: 0 | Blue: 3
Test Point Location
0.00
0.00
0.50
Sphere: Training data
Cube (wireframe): Test point
White rings: K nearest neighbors
Lines: Connections to neighbors
Display
0.70
Classify one point with KNN
Sequence
Order what KNN does at prediction time.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
5 pieces left to place
Test your knowledge
22 questions
Question 1 of 22
Score: 0
How does KNN classify a new data point?
Interview Questions
Amazon
Microsoft
Adobe
Google
Airbnb
Uber
Pinterest
Spotify
Twitter
LinkedIn
Shopify
Zalando
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required