Search code examples
rmachine-learningk-meansunsupervised-learninginterpretation

How can I interpret the results of R kmeans function?


I have a large set of data containing the description for 81432 images. These descriptions are generated by an image descriptor which generates a vector (for each image) with 127 positions. So, I have a matrix with 81432 rows and 127 columns.

And I'm running kmeans from R, but I just don't know how to interpret the results. I've set a number of clusters, the algorithm runs and so what? I want to plot the Elbow rule, but I don't even know how to do it.


Solution

  • To plot the Elbow Rule (which is about how near are the points to its centroid) we have to use the tot.withinss (Total within-cluster sum of squares).

    This answer is regarding the use of R.