Skip to content

predict function for kmeans

1 message · Raji

#
Hi,

   I am using kmeans algorithm to cluster my training dataset.After the
model is generated, i need to apply it to my production dataset and see the
clusters it falls into.But, i am unable to find a predict function for
kmeans to do this. Could you please let me know if there is a predict
function in R to perform this?

In SPSS, once the kmeans model is generated , it can be applied to a new
dataset and find the clusters.I am trying to do something similar in R.

Thanks in advance.