Back Navigation Next Navigation K-Nearest Neighbors (page 4 of 6)

The other important hyper-parameter that we have to determine is how to calculate the distance between two data points.

This distance calculation is how the model determines who the nearest neighbors are. Common options are Euclidean, Manhattan, and Minkowski. We pick the distance hyper-parameter based on our understanding of the business problem and, often, through trial and error.

Distance metrics