source: orange/orange/doc/modules/ @ 6538:a5f65d7f0b2c

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

Made XPM version of the icon 32x32.

1# Description: Self Organizing Maps on iris data set
2# Category:    modelling
3# Uses:        iris
4# Referenced:  orngSOM.htm
5# Classes:     orngSOM.SOMLearner
7import orngSOM
8import orange
9som = orngSOM.SOMLearner(map_shape=(10, 20), initialize=orngSOM.InitializeRandom)
10map = som(orange.ExampleTable(""))
11for n in map:
12    print "node:", n.pos[0], n.pos[1]
13    for e in n.examples:
14        print "\t",e
Note: See TracBrowser for help on using the repository browser.