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之后即可
我试过了,程序没问题,运行结果有两张图
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)