-
大小: 8.36MB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2023-11-18
- 語言: Matlab
- 標簽: matlab??神經(jīng)網(wǎng)絡??
資源簡介
《MATLAB 神經(jīng)網(wǎng)絡30個案例分析》源程序 數(shù)據(jù) 無pdf
代碼片段和文件信息
%%?該代碼為基于帶動量項的BP神經(jīng)網(wǎng)絡語音識別
%
%?
%? 該案例作者申明: 1:本人長期駐扎在此板塊里,對該案例提問,做到有問必答。本套書籍官方網(wǎng)站為:video.ourmatlab.com 2:點此從當當預定本書:《Matlab神經(jīng)網(wǎng)絡30個案例分析》。 3:此案例有配套的教學視頻,視頻下載方式video.ourmatlab.com/vbuy.html。?
4:此案例為原創(chuàng)案例,轉(zhuǎn)載請注明出處(《Matlab神經(jīng)網(wǎng)絡30個案例分析》)。 5:若此案例碰巧與您的研究有關(guān)聯(lián),我們歡迎您提意見,要求等,我們考慮后可以加在案例里。
%?
%%?清空環(huán)境變量
clc
clear
%%?訓練數(shù)據(jù)預測數(shù)據(jù)提取及歸一化
%下載四類語音信號
load?data1?c1
load?data2?c2
load?data3?c3
load?data4?c4
%四個特征信號矩陣合成一個矩陣
data(1:500:)=c1(1:500:);
data(501:1000:)=c2(1:500:);
data(1001:1500:)=c3(1:500:);
data(1501:2000:)=c4(1:500:);
%從1到2000間隨機排序
k=rand(12000);
[mn]=sort(k);
%輸入輸出數(shù)據(jù)
input=data(:2:25);
output1?=data(:1);
%把輸出從1維變成4維
for?i=1:2000
????switch?output1(i)
????????case?1
????????????output(i:)=[1?0?0?0];
????????case?2
????????????output(i:)=[0?1?0?0];
????????case?3
????????????output(i:)=[0?0?1?0];
????????case?4
????????????output(i:)=[0?0?0?1];
????end
end
%隨機提取1500個樣本為訓練樣本,500個樣本為預測樣本
input_train=input(n(1:1500):)‘;
output_train=output(n(1:1500):)‘;
input_test=input(n(1501:2000):)‘;
output_test=output(n(1501:2000):)‘;
%輸入數(shù)據(jù)歸一化
[inputninputps]=mapminmax(input_train);
%%?網(wǎng)絡結(jié)構(gòu)初始化
innum=24;
midnum=25;
outnum=4;
?
%權(quán)值初始化
w1=rands(midnuminnum);
b1=rands(midnum1);
w2=rands(midnumoutnum);
b2=rands(outnum1);
w2_1=w2;w2_2=w2_1;
w1_1=w1;w1_2=w1_1;
b1_1=b1;b1_2=b1_1;
b2_1=b2;b2_2=b2_1;
%學習率
xite=0.1
alfa=0.01;
%%?網(wǎng)絡訓練
for?ii=1:10
????E(ii)=0;
????for?i=1:1:1500
???????%%?網(wǎng)絡預測輸出?
????????x=inputn(:i);
????????%?隱含層輸出
????????for?j=1:1:midnum
????????????I(j)=inputn(:i)‘*w1(j:)‘+b1(j);
????????????Iout(j)=1/(1+exp(-I(j)));
????????end
????????%?輸出層輸出
????????yn=w2‘*Iout‘+b2;
????????
???????%%?權(quán)值閥值修正
????????%計算誤差
????????e=output_train(:i)-yn;?????
????????E(ii)=E(ii)+sum(abs(e));
????????
????????%計算權(quán)值變化率
????????dw2=e*Iout;
????????db2=e‘;
????????
????????for?j=1:1:midnum
????????????S=1/(1+exp(-I(j)));
????????????FI(j)=S*(1-S);
????????end??????
????????for?k=1:1:innum
????????????for?j=1:1:midnum
????????????????dw1(kj)=FI(j)*x(k)*(e(1)*w2(j1)+e(2)*w2(j2)+e(3)*w2(j3)+e(4)*w2(j4));
????????????????db1(j)=FI(j)*(e(1)*w2(j1)+e(2)*w2(j2)+e(3)*w2(
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5916??2010-11-28?23:56??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter1\BPDLX.m
?????文件???????5831??2010-11-28?23:55??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter1\chapter1_1.m
?????文件??????93015??2009-08-29?16:54??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter1\data1.mat
?????文件??????92845??2009-08-29?16:54??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter1\data2.mat
?????文件??????92937??2009-08-29?16:54??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter1\data3.mat
?????文件??????93438??2009-08-29?16:54??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter1\data4.mat
?????文件???????3588??2010-11-16?19:01??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\chapter10.m
?????文件????????443??2009-10-06?15:58??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\class.mat
?????文件??????13978??2010-11-16?19:01??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\html\chapter10.html
?????文件???????4028??2010-11-16?19:01??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\html\chapter10.png
?????文件???????7775??2010-11-16?19:01??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\html\chapter10_01.png
?????文件??????73452??2010-11-16?23:13??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\MATLAB神經(jīng)網(wǎng)絡30個案例分析源代碼[Demo]chapter10.pdf
?????文件????????506??2010-11-16?20:41??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\Readme.txt
?????文件????????465??2009-10-06?21:11??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\sim.mat
?????文件???????2378??2010-11-16?19:16??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\stdlib.m
?????文件???????2934??2010-11-16?19:18??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter10\test.m
?????文件????????232??2009-09-21?13:03??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\city_location.mat
?????文件????????217??2009-12-21?19:56??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\diff_u.m
?????文件????????247??2010-01-30?10:30??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\energy.m
?????文件??????16888??2010-11-16?19:31??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\html\main.html
?????文件???????2282??2010-11-16?19:31??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\html\main.png
?????文件??????10699??2010-11-16?19:31??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\html\main_01.png
?????文件??????10374??2010-11-16?19:31??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\html\main_02.png
?????文件???????4756??2010-11-16?19:31??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\html\main_03.png
?????文件???????4805??2010-11-16?19:30??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\main.m
?????文件??????98491??2010-11-16?23:14??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\MATLAB神經(jīng)網(wǎng)絡30個案例分析源代碼[Demo]chapter11.pdf
?????文件????????487??2010-11-16?20:40??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter11\Readme.txt
?????文件???????4467??2010-11-16?22:31??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter12\chapter12.m
?????文件??????20033??2010-11-16?21:45??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter12\chapter12_wine.mat
?????文件??????15611??2010-11-16?22:32??《MATLAB?神經(jīng)網(wǎng)絡30個案例分析》源程序?數(shù)據(jù)\chapter12\html\chapter12.html
............此處省略432個文件信息
評論
共有 條評論