source: orange/orange/doc/modules/kmeans-run-callback.py @ 6538:a5f65d7f0b2c

Revision 6538:a5f65d7f0b2c, 266 bytes checked in by Mitar <Mitar@…>, 4 years ago (diff)

Made XPM version of the icon 32x32.

Line 
1import orange
2import orngClustering
3
4def callback(km):
5    print "Iteration: %d, changes: %d, score: %.4f" % (km.iteration, km.nchanges, km.score)
6   
7data = orange.ExampleTable("iris")
8km = orngClustering.KMeans(data, 3, minscorechange=0, inner_callback=callback)
Note: See TracBrowser for help on using the repository browser.