Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How k-means clustering is different from knn?

Answer Posted / Raj Kapoor Agrahari

K-means clustering and k-nearest neighbors (kNN) are two distinct machine learning algorithms. K-means is an unsupervised learning algorithm used for grouping data into clusters, while kNN is a supervised learning algorithm used for classification or regression tasks. In k-means, the goal is to find the optimal number of clusters (k), and assign each data point to one of those clusters based on distance, whereas in kNN, the goal is to predict the label of an unseen sample by finding its k nearest neighbors in the training data.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the apis outside tensorflow project?

4