¡@

Home 

python Programming Glossary: centroids

Calculating the percentage of variance measure for k-means?

http://stackoverflow.com/questions/6645895/calculating-the-percentage-of-variance-measure-for-k-means

that I have the following points with their associated centroids what is a good way of calculating this measure points numpy.array.. computing the 0.94.. measure given just the points and the centroids. I am not sure if any of the inbuilt methods of scipy can be.. from scipy.spatial.distance import cdist D cdist points centroids 'euclidean' sum numpy.min D axis 1 The output for the first..