我在 MATLAB 或 iris 数据集中使用了 SOM 工具箱。以下示例并使用 plotsomhits 我可以看到 SOM 的神经元网格的每个神经元中有多少数据值。但是,我想知道在给定 SOM 配置的每个神经元中分组的实际数据值。有没有办法做到这一点。这是我使用的示例。
net = selforgmap([8 8]);
view(net)
[net,tr] = train(net,x);
nntraintool
plotsomhits(net,x)
我在 MATLAB 或 iris 数据集中使用了 SOM 工具箱。以下示例并使用 plotsomhits 我可以看到 SOM 的神经元网格的每个神经元中有多少数据值。但是,我想知道在给定 SOM 配置的每个神经元中分组的实际数据值。有没有办法做到这一点。这是我使用的示例。
net = selforgmap([8 8]);
view(net)
[net,tr] = train(net,x);
nntraintool
plotsomhits(net,x)
not that hard. plotsomhits
just plots "fancily" the results of the simulation of the net.
so if you simulate it and add the "hits" you have the result!
basicaly:
hits=sum(sim(net,x)');
In your net case this was my results, that coincide with the numbers in the plotsomehits
hits= 6 5 0 7 15 7 4 0 8 20 3 3 9 3 0 8 6 3 11 4 5 5 7 10 1
PD: you can learn a lot in this amazing SO answer:
MATLAB: help needed with Self-Organizing Map (SOM) clustering