source: orange/docs/reference/rst/code/som-node.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 408 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

Line 
1# Description: Self Organizing Maps on iris data set
2# Category:    projection
3# Uses:        iris
4# Referenced:  Orange.projection.som
5# Classes:     Orange.projection.som.Node
6
7import Orange
8som = Orange.projection.som.SOMLearner(map_shape=(5, 5))
9map = som(Orange.data.Table("iris.tab"))
10node = map[3, 3]
11
12print "Node position: (%d, %d)" % node.pos
13print "Data instances in the node:", len(node.examples)
Note: See TracBrowser for help on using the repository browser.