資源簡介
MATLAB 程序
文件說明:
1、NeuralNetwork_RBF_Classification.m - 分類
2、NeuralNetwork_RBF_Regression.m - 回歸
代碼片段和文件信息
%?RBF?神經網絡用于模式分類
%?使用平臺?-?Matlab6.5
%?作者:陸振波,海軍工程大學
%?歡迎同行來信交流與合作,更多文章與程序下載請訪問我的個人主頁
%?電子郵件:luzhenbo@yahoo.com.cn
%?個人主頁:http://luzhenbo.88uu.com.cn
clc
clear
close?all
%---------------------------------------------------
%?產生訓練樣本與測試樣本,每一列為一個樣本
P1?=?[rand(35)rand(35)+1rand(35)+2];
T1?=?[repmat([1;0;0]15)repmat([0;1;0]15)repmat([0;0;1]15)];
P2?=?[rand(35)rand(35)+1rand(35)+2];
T2?=?[repmat([1;0;0]15)repmat([0;1;0]15)repmat([0;0;1]15)];
%---------------------------------------------------
%?歸一化
[PN1minpmaxp]?=?premnmx(P1);
PN2?=?tramnmx(P2minpmaxp);
%---------------------------------------------------
%?訓練
switch?2
case?1
????????
%?神經元數是訓練樣本個數
spread?=?1;???????????????????%?此值越大覆蓋的函數值就大(默認為1)
net?=?newrbe(PN1T1spr
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1978??2007-12-09?18:44??NeuralNetwork_RBF\NeuralNetwork_RBF_Classification.m
?????文件???????1950??2007-12-09?18:44??NeuralNetwork_RBF\NeuralNetwork_RBF_Regression.m
?????文件????????398??2007-12-09?13:14??NeuralNetwork_RBF\RBF文件夾說明.txt
?????目錄??????????0??2009-07-06?08:06??NeuralNetwork_RBF
-----------?---------??----------?-----??----
?????????????????4326????????????????????4
評論
共有 條評論