Glossary · Phase 3 · Machine learning
Nearest neighbors
Predicting from the most similar past examples.
Try it now
Every spot on the plane takes the majority vote of its k nearest points. Slide k from 1 up to 51.
Learn it properly
Nearest neighbors · Predict from the most similar examples. About 25 minutes.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.