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
Tags
Data Science
Related
Specifying a distance metric for k-Nearest Neighbors algorithm
Specifying K = the number of the nearest neighbors for a k-Nearest Neighbors algorithm
Specifying the optional weighting function on the neighbor points for a k-Nearest Neighbors algorithm
Specifying a method for aggregating the classes of neighbor points for a k-Nearest Neighbors algorithm
Euclidean Distance
Manhattan Distance
Hamming Distance
K-Nearest Neighbors for Machine Learning (Reference)
Specifying a distance metric for k-Nearest Neighbors algorithm