Introduction to K-Nearest Neighbors

This lesson will introduce the k-nearest neighbors technique and the steps involved in its implementation.

We'll cover the following

Quick overview

Our next supervised learning classification technique is K-Nearest Neighbors (k-NN), which classifies new unknown data points based on their proximity to known data points. This classification process is determined by setting the k number of data points closest to the target data point. For example, if you set k to 3, k-NN analyzes the nearest three data points (neighbors) to the target data point.

Get hands-on with 1200+ tech skills courses.