跪求som神经网络的MATLAB源代码,谢谢各位大哥大姐。如果运行结果代码正确,高分相送。

跪求som神经网络的MATLAB源代码,谢谢各位大哥大姐。如果运行结果代码正确,高分相送。,第1张

SOM:

close all

clf reset

figure(gcf)

echo on

pause

clc

p=zscore(data)%biaozhunhua

pause

clc

plot3(p(:,1),p(:,2),p(:,3),'*')

axis([0 1 0 1])

title('Input data')

pause

clc

net=newsom([0 10 1],[9])

pause

clc

net.trainParam.epochs=100

net=train(net,p)

pause

clc

figure

w=net.IW{1}

%IW 是输入层到第一层的权值矩阵

%LW 是中间层和输出层,也就是神经元到神经元的权值

%b 是第Ni层的偏向向量

plotsom(net.IW{1,1},net.layers{1}.distances)

pause

clc

a=sim(net,[0.60.8])

echo off

量化误差

Then via the introduction of Match-degree, Reduction-rate and quantification error of reducing sample, a novel approach to

intrusion detection based on Multi-layered modified SOM neural network and

Principal Component Analysis (PCA) is proposed.

然后通过引入自定义变量匹配度、约简率和约简样本量化误差,提出了一种新的基于多层自组织映射和主成分分析入侵检测模型与算法

短句来源

The Self-Organizing Map(SOM) learning and classification algorithms are

firstly modified. Then via the introduction of match-degree,reduction-rate and

quantification error of reducing sample,a novel approach

to intrusion detection based on multi-layered modified SOM neural network and

Principal Component Analysis(PCA) is proposed.

首先改进了自组织映射学习和分类算法,通过引入自定义变量匹配度、约简率和约简样本量化误差,提出了一种新的基于多层自组织映射和主成分分析入侵检测模型与算法。

程序没有错!!是你用错了,函数的.m文件不是直接运行,要在workplace中调用或则其他程序调用,例如,你在workplace输入:A=[0 1 1 11 0 1 11 1 0 11 1 1 0]enter后再输入: [DeD,aver_DeD]=Degree_Distribution(A)

enter之后即可

我试过了,程序没问题,运行结果有两张图


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/8065029.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-13
下一篇 2023-04-13

发表评论

登录后才能评论

评论列表(0条)

保存