K-nearest neighbors (KNN)ΒΆ
Python notebook: https://github.com/daviskregers/data-science-recap/blob/main/21-knn-movie-rating-prediction.ipynb
- Used to classify new data points based on "distance" to known data
- Find the K nearest neighbors, based on your distance metric
- Let them all vote on the classification
- Although it's one of the simplest machine learning models there is - it qualifies as "supervised learning"
- But we can also do some complex tasks with it like finding movie similarities based on metadata.