source: orange/docs/reference/rst/code/ @ 9372:aef193695ea9

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

Moved documentation to the separate directory.

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
7import Orange
8som = Orange.projection.som.SOMLearner(map_shape=(5, 5))
9map = som(""))
10node = map[3, 3]
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.