in R, what is difference between kmeans() and kmeansCBI()?
I tried both kmeans()
and kmeansCBI()
from the fps
package on my dataset.
But, they give different SSE value, so I don't know which one is correct value.
For example, with 700*5 data, kmeans()
gives me approximately 33000 as SSE, but kmeansCBI()
gives me 120 as SSE.
What va开发者_如何学Golue should I use?
Thanks.
From the package descriptions:
kmeans()
uses Hartigan and Wong equation while kmeansCBI()
is an interface to the function of kmeansruns()
and calls kmeans()
.
You can read the help for any function by using ?
in front of the function name. I am not sure why you are getting different answers but I would advise you to check out the documentation to make sure you know what you are doing.
精彩评论