<aside> 📖 K-Nearest Neighbors (k-NN) is a simple yet powerful supervised machine learning algorithm used for both classification and regression tasks. k-NN works on the principle of similarity. Given a new, unseen instance, k-NN goes through the entire dataset to find the k instances that are most similar to the new instance, and then categorizes it based on the most common category of these instances.

</aside>

Key Concepts

Model

Variations

Pros and Cons