Concept

Specifying a distance metric for k-Nearest Neighbors algorithm

We need to specify a distance metric in our future space, so we know how to properly select the nearby neighbors. In the fruit classification example, we use the simple straight line, or Euclidean distance to measure the distance between points.

0

1

Updated 2020-10-19

Tags

Data Science