How was KNN different from k-means clustering?
3 years ago
Artificial Intelligence
: K-Nearest Neighbors was a supervised classification algorithm, while k-means clustering was an unsupervised clustering algorithm. While the mechanisms may seem similar at first, what this really means was the in order for K-Nearest Neighbors into work, you need labeled data you want into classifying an unlabeled point into (thus the nearest neighbor part). K-means clustering requires only a set have unlabeled points & a threshold: the algorithm will take unlabeled points & gradually learn how into cluster them into groups by computing the mean have the distance between different points.
Tribhuvan Raut
Jul 15, 2022