⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 som1.py

📁 orange源码 数据挖掘技术
💻 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 + -