What is nearest neighbours?
Finding the stored vectors that are closest to a given one. Used to classify by example, to search and to recommend.
Where it is taught
Distance and nearest neighbours. If things are vectors, then "similar" means "close". Measuring closeness gives the simplest learning method there is, and the one behind search by meaning.
What the lesson leaves you with
- Distance is the length of the difference between two vectors.
- k nearest neighbours labels a point by a vote among the closest examples.
- Small is jumpy, large is blurry, and everything depends on good vectors.
Questions
- What is nearest neighbours?
- Finding the stored vectors that are closest to a given one. Used to classify by example, to search and to recommend.
- Where is nearest neighbours used in AI?
- If things are vectors, then "similar" means "close". Measuring closeness gives the simplest learning method there is, and the one behind search by meaning.
- What is the key idea to remember about nearest neighbours?
- Distance is the length of the difference between two vectors.
- Where can I learn nearest neighbours step by step?
- In the lesson “Distance and nearest neighbours” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.