AW: [R] Probleme with Kmeans...
Unung Istopo Hartanto
unung at enciety.com
Wed May 12 02:20:45 CEST 2004
Ups... I understand now about your comment before that Kmeans has
problems to process one variable.
Thank you very much.
Unung
On Tue, 2004-05-11 at 21:40, TEMPL Matthias wrote:
> Sorry, to solve your question I had tried:
>
> data(faithful)
> kmeans(faithful[c(1:20),1],10)
> Error: empty cluster: try a better set of initial centers
>
> But when I run this a second time it will be ok.
>
>
> It seems, that kmeans has problems to initialize good starting points, because of the random choose of these starting initial points.
> With kmeans(data,k,centers=c(...) the problem can be solved.
> Generally, the starting points can be choose equidistant on a hyperplane of the data, which is also a simple way to get the intitial points
> (www.fuzzyclustering.de , fc-package of Höppner, manual).
>
>
> Thank you for your comment,
> Matthias
More information about the R-help
mailing list