Dear Simon,
I respectfully disagree with you, when you say that it is NOT a bug. Empty
clusters can only happen if one provides a set of centers; if one enters
something like k=4, it cannot happen, so it must be a bug. Which one is
your case?
From the help:
Except for the Lloyd-Forgy method, k
There is a documented bug in R 2.15.2 and R 2.15.3. The developers
decided not to fix this with an update, but it has been fixed with R
3.0.0 (perhaps also with R 3.0.1, which I have not tried myself). So,
upgrading R should take care of this problem.
HTH,
Ranjan
On Sun, 19 May 2013 16:17:30
Hello all,
k-means algorithms can at times fail because one of the cluster become
emmpty. In this case, the kmeans R function returns:
empty cluster: try a better set of initial centers
This has been discussed several times on several R-lists, and is NOT a
bug, but can be annoying when using
3 matches
Mail list logo