Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
504 views

Can the k-nearest neighbor algorithm tell you how many clusters there are among predictors?

I recently did a short course on machine learning in R and found the k-means and k-nearest neighbor techniques extremely interesting. Forgive my naivete if this is all wrong, but it seems like the ...
llewmills's user avatar
  • 2,187
0 votes
0 answers
254 views

Classification on aggregate data

I've been tasked with creating a model that can classify individual cases as either something to be flagged or not. However, the training data I have access to is only aggregate data, where each row ...
proofs_challenged's user avatar
0 votes
1 answer
125 views

KNN and K-means, very different but possible equivalency?

Why does the k-nearest neighbor algorithm and k-means clustering algorithm with $k=1$ act the same?
Mio Unio's user avatar
1 vote
2 answers
196 views

Is it possible to have same result for knn classifier and kmeans?

Could we achieve similar grouping or results for a set of data, if applied with either Knn and k-means
blackmamba591's user avatar
0 votes
1 answer
3k views

In k-means or kNN, we use euclidean distance to calculate the distance between nearest neighbours. Why not manhattan distance?

In k-means or kNN, we use euclidean distance to calculate the distance between nearest neighbours. Why not manhattan distance ?
VRawat's user avatar
  • 1
2 votes
2 answers
2k views

Why are k-means and k-NN considered simple algorithms in machine learning?

We all know the k-means clustering algorithm and the k-nearest neighbors algorithm: the former is an unsupervised clustering method, and the latter is a supervised learning technique in machine ...
DavideChicco.it's user avatar
135 votes
5 answers
175k views

What are the main differences between K-means and K-nearest neighbours?

I know that k-means is unsupervised and is used for clustering etc and that k-NN is supervised. But I wanted to know concrete differences between the two?
nsc010's user avatar
  • 1,697