¡@

Home 

python Programming Glossary: kidx

Calculating the percentage of variance measure for k-means?

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

avgWithinSS sum d X.shape 0 for d in dist ##### plot ### kIdx 2 # elbow curve fig plt.figure ax fig.add_subplot 111 ax.plot.. fig.add_subplot 111 ax.plot K avgWithinSS 'b ' ax.plot K kIdx avgWithinSS kIdx marker 'o' markersize 12 markeredgewidth 2.. 111 ax.plot K avgWithinSS 'b ' ax.plot K kIdx avgWithinSS kIdx marker 'o' markersize 12 markeredgewidth 2 markeredgecolor 'r'..