source: orange/docs/reference/rst/code/ @ 10633:fb05a6f3a235

Revision 10633:fb05a6f3a235, 409 bytes checked in by mstajdohar, 2 years ago (diff)

Changed obsolete names.

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.instances)
Note: See TracBrowser for help on using the repository browser.