Nearest Neighbours Flashcards
What type of method is nearest neighbours?
Non-parametric
How does nearest neighbours work?
We store a large amount of training data. When the AI is fed a test sample, it compares it with the training data to find the closest match
What data is required for nearest neighbours?
We need to store and keep all data
What does “k-nearest” mean?
When finind the nearest matches, we can average k number of close points to get a better average
How does nearest neighbours scale with dimensions?
In few dimensions, it works well. In larger dimensions, it is very hard.
How does k affect the boundary?
> A low value of k makes a much rougher boundary
> A high value of k makes a much smoother boundary
[Picture 5]
What is a KD-tree?
For finding neighbours in a large number of dimensions, we use a KD tree. The tree can be easily navigated to find the point