source: orange/Orange/doc/modules/som1.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 412 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

Line 
1# Description: Self Organizing Maps on iris data set
2# Category:    modelling
3# Uses:        iris
4# Referenced:  orngSOM.htm
5# Classes:     orngSOM.SOMLearner
6
7import orngSOM
8import orange
9som = orngSOM.SOMLearner(map_shape=(10, 20), initialize=orngSOM.InitializeRandom)
10map = som(orange.ExampleTable("iris.tab"))
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.