K-Nearest Neighbors (KNN)

From PRIMO.ai
Jump to navigation Jump to search

YouTube ... Quora ... Google search ... Google News ... Bing News

Can be used for regression or classification by choosing 'K'; where 'K' = # of closest neighboring data points that the model uses in prediction.

This is a simple algorithm which predicts unknown data point with its k nearest neighbors. The value of k is a critical factor here regarding the accuracy of prediction. It determines the nearest by calculating the distance using basic distance functions like Euclidean. However, this algorithm needs high computation power and we need to normalize data initially to bring every data point to same range. 10 Machine Learning Algorithms You need to Know | Sidath Asir @ Medium

1*9h-WczF6csbeut5vsvjSUA.gif

How kNN algorithm works
Explains how the k-nearest neighbors algorithm works.

k nearest neighbor (kNN): how it works
Victor Lavrenko explains how k-nearest neighbors works.

10. Introduction to Learning, Nearest Neighbors
MIT lecture introducing learning and nearest neighbors.