Re: K-means Python code analyse

2016-11-23 Thread dieter
Alex writes: > Can please anyone explaine me what do each of these code lines and how > k-means algorithm works? How about searching "wikipedia"? (--> "https://en.wikipedia.org/wiki/K-means_clustering";). -- https://mail.python.org/mailman/listinfo/python-list

K-means Python code analyse

2016-11-23 Thread Alex
Can please anyone explaine me what do each of these code lines and how k-means algorithm works? from scipy.cluster.vq import * from scipy.misc import imresize from pylab import * from PIL import Image steps = 500 im = array(Image.open("empire.jpg")) dx = im.shape[0] / steps dy = im.shape[1] / s