Types Of Distances In Machine Learning


Introduction Distance is the separation of two or more points in space. Machine learning models use different types of distances such as Euclidean distance, Manhattan distance, Minkowski, cosine distance, etc. Machine learning algorithms like k-nearest neighbor, k-means clustering uses Euclidean, Manhattan, Minkowski methods for distance calculation. Cosine distance is used in recommendation algorithms. In this … Read more