I have a dataset a bit like this:

I performed K clustering using this code:
from scipy.cluster.vq import kmeans, vq
data=np.matrix(dataAll.ix[:,:-1])
centers, _ = kmeans(data, 3, iter=100)
cluster, _ = vq(data, centers)
Here I want to ask how to evaluate k means clustering . I want to get such a value as accuracy, accuracy, f measures .
source
share