📄 som1.py
字号:
# Description: Self Organizing Maps on iris data set
# Category: modelling
# Uses: iris
# Referenced: orngSOM.htm
# Classes: orngSOM.SOMLearner
import orngSOM
import orange
l=orngSOM.SOMLearner(xDim=5, yDim=10, parameters=[{"iterations":1000, "radius":5, "alpha":0.02},{"iterations":10000, "alpha":0.05}]) #radius in the second phase will be the same as in the first
c=l(orange.ExampleTable("iris.tab"))
for n in c.nodes:
print "node:", n.x,n.y
for e in n.examples:
print "\t",e
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -