”@

Home 

python Programming Glossary: maxiter

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

def kmeans X centres delta .001 maxiter 10 metric euclidean p 2 verbose 1 centres Xtocentre distances.. centres is within delta of the previous average distance maxiter metric any of the 20 odd in scipy.spatial.distance chebyshev.. if verbose print kmeans X s centres s delta .2g maxiter d metric s X.shape centres.shape delta maxiter metric allx..

Calculating the percentage of variance measure for k-means?

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

xtoc dist kmeanssample points 2 nsample 2 delta kmdelta maxiter kmiter metric metric verbose 0 print Unique clusters set xtoc..