问题标签 [som]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
549 浏览

matlab - matlab selforgmap 输出中的哪一列对应于 SOM 映射的哪个神经元

我使用 selforgmap 进行模式识别。训练完成后,我计算了整个数据的网络输出,得到了一个逻辑矩阵。

我想知道selforgmap如何:

1- 给神经元编号(我的意思是从 1 到 N,而 N 等于神经元的总数) 2-

这是我的地图

输出看起来像这样(转置后)

1 0 0 0

0 1 0 0

1 0 0 0

1 0 0 0

0 0 1 0

0 1 0 0

0 0 1 0

0 0 1 0

我想知道输出中的哪一列对应于地图的哪个神经元

0 投票
1 回答
108 浏览

r - 为 Kohonen 图的每个节点提取 HTML 颜色代码

我正在使用以下脚本来绘制 SOM,并且我想提取与每个节点对应的 HTML 颜色代码。

它似乎不在 som_model s3 对象中。

任何想法?

我正在寻找的输出将是一个列表/向量,每个节点的颜色代码为:“#0000FF”、“#FF0000”...

0 投票
1 回答
9034 浏览

python - Python中的最小-最大归一化

我一直在使用真实世界数据集(.csv 文件)上的自组织地图(SOM)。我正在尝试基于 Min-Max Normalization 对数据进行规范化以提高有效性。

但我遇到了一个错误。错误就像:"unsupported operand type(s) for list and float"

我找不到更好的解决方案,对此我完全迷失了。

trr在开头声明为:

0 投票
1 回答
200 浏览

som - 在 matlab 中使用 SOM 进行训练后,我如何知道哪些输入聚集在一起?

我是自组织图 (SOM) 的新手,并且一直在使用 Matlab 学习和测试它。

我想知道如何使用matlab检索聚集(相似)的输入?

0 投票
0 回答
309 浏览

c# - SOMLearning() & GetWinner() function in AFroge.Net (Neural Nerworks)

I'm trying to train a DistanceNetwork with SOMLearning of MNIST DB (of handwritten digits).

Each image represented as a 28*28 pixels vector (784 cells), and a label of 0-9.

This is the initialization code:

And this is the training cycle basic code:

After the iterations are finished, when I'm trying to Compute images from the Training Set (for a sanity check), I don't get the nearest image (as I think its suppose to be).

For example, in this test:

I'm trying to get the same image vector that was inserted to the network, so nearestImage suppose to be the same image as the computed image. but I can't find a way to get the nearest image, just the winner neuron (with GetWinner() >> The method returns index of the neuron, which weights have the minimum distance from network's input. )

this is an example of the outputs for some 3 imputs from the training set:

enter image description here

enter image description here

enter image description here

So because the output image I got from the weights is not accurate, I can't get the label of the output image,

also I didn't find a way to insert the label to the train method, but it can be done by putting the label at the first index of the vector).

Please help me to figure out how to make it work, there is not much info out there.

References:

http://www.aforgenet.com/framework/docs/html/ec926d74-a319-191e-edbe-ee5d9321f304.htm http://www.aforgenet.com/framework/samples/neuro_som.html

0 投票
1 回答
695 浏览

matlab - 以编程方式在自组织图上查找神经元命中

我一直在使用 Matlab 的工具箱进行自组织地图,即newsom和相关的函数族。我正在将 SOM 聚类应用于大量文档,并且我已经使用plotsomhits(net, features)来可视化为每个神经元分配了多少模式/文档。但是,我似乎在工具箱中找不到任何函数来检索数据结构中的这些命中,而不仅仅是将它们可视化。

现在我知道我可以自己找到命中,在一个简单的for循环中选择最大化每个模式的负距离度量的神经元:

然而,鉴于存在用于可视化此类结果的函数,SOM 工具箱中没有可用的函数对我来说似乎很奇怪。

有人知道吗?另外,有没有比我上面描述的更快的方法来找到每个模式被“分配”到的神经元?

0 投票
1 回答
528 浏览

matlab - 如何更改MATLAB2014R中自组织地图训练的默认最大epoch数(200)

我有大量数据(100,000 个观察值)并且一直在使用 Matlab2014R。我使用了命令:

net = selforgmap([dimension1 dimension2]);

但似乎我没有选择更改默认的最大时期(200),我怀疑这可能不够,但我找不到任何地方来提高这个数字,包括它自己的手册。有什么建议么?

0 投票
3 回答
906 浏览

neural-network - 自组织图:神经元数量

我最近遇到了自组织地图,我有以下疑问:

1)神经元的数量与单元(簇)的数量有什么关系?2) 如何从特定单元中提取元素?

0 投票
2 回答
844 浏览

r - R kohonen:最大数据大小有多大?整数溢出错误

我正在使用带有 8 GB RAM 机器(MacBook Pro)的 RStudio。我还在 AWS 中使用具有 15 GB RAM 的 RStudio Server。

两者似乎都无法以 800,000+ 条记录的数据大小完成 som()。100,000 条记录似乎也永无止境。

我想知道 R kohonen 包是否有实际的数据大小限制?随后,我应该如何处理此类大数据的 SOM?

更新:RStudio 服务器最终以错误结束:

矩阵中的错误(0,nd * ncodes,nmaps):无效的'nrow'值(太大或NA)另外:警告消息:In nd * ncodes:整数溢出产生的NA

那么限制是多少呢?

0 投票
1 回答
383 浏览

ruby - 用于自组织地图输出的 ruby​​ gnuplot 热图

我正在用红宝石做一些关于 SOM 的实验。获得最佳匹配单元后,我的输出如下所示:x 坐标、y 坐标和与最佳匹配单元的距离

我有200行输出。

我想为此输出制作热图,但遇到了 gnuplot 的麻烦。

我实际使用的代码:

x 和 y 数组包含整数(用于坐标),dist 数组包含浮点值。

我已经在这里和 gnuplot 网站上搜索过。使用的绿色灵感来自这里: Gnuplot: how to write the z values in a heatmap plot

我成功地用点绘制距离,但我需要更多带有热图的视觉图。

帮助将不胜感激

编辑:嗨克里斯托夫,我的数据看起来像下面的几行:

我将每一列映射到适当的类型(前两个为int,最后一个为float)。x 和 y 表示节点坐标,最后一列表示输入和最佳匹配单元之间的距离。我想绘制一个热图(50x50)并根据距离为每个节点着色(白色表示短距离,绿色深表示最大距离)。

主要问题是我没有成功用下面粘贴的代码绘制我想要的东西。我想我不能粘贴屏幕截图,因为我没有足够的帖子..

编辑 2:我也尝试对距离列进行舍入,没有变化

编辑 3:我终于将我的输出(3 个向量:x、y、距离)转换为常规网格。

我创建了一个用 1.0 填充的二维数组:

然后我在 x 和 y 向量中查找相应的索引,这表明节点存在于我的向量中,并用相应的距离值填充 ntab 节点:

我现在有一个完美的网格(50x50),我可以从中绘制距离值。如果我找到它,我会用最终的工作代码编辑我的问题:)

感谢 Christoph 提供有关 gnuplot 的建议