Explain the k-nearest algorithm different from the knn clustering?
Answer Posted / Shrinimesh
The k-Nearest Neighbors (k-NN) is a supervised learning algorithm used for both classification and regression tasks. In the classification setting, it assigns new instances to the most common class among its k nearest neighbors in the training data. In contrast, KNN Clustering is an unsupervised learning technique where clusters are formed based on the proximity of data points using Euclidean distance or other metrics. Each point belongs to the cluster with the majority of its k nearest neighbors.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers