¡@

Home 

python Programming Glossary: kmeans

Python k-means algorithm

http://stackoverflow.com/questions/1545606/python-k-means-algorithm

and they include a k means implementation. There's a scipy kmeans example here. There's also scipy cluster which does agglomerative..

Is it possible to specify your own distance function using Scikits.Learn K-Means Clustering?

http://stackoverflow.com/questions/5529625/is-it-possible-to-specify-your-own-distance-function-using-scikits-learn-k-means

learn share improve this question Here's a small kmeans that uses any of the 20 odd distances in scipy.spatial.distance.. what are your N dim k metric # usr bin env python # kmeans.py using any of the 20 odd metrics in scipy.spatial.distance.. any of the 20 odd metrics in scipy.spatial.distance # kmeanssample 2 pass first sample sqrt N from __future__ import division..