BP神经网络学习的代码

时间:2016-01-11 09:41:20
【文件属性】:
文件名称:BP神经网络学习的代码
文件大小:37KB
文件格式:DOC
更新时间:2016-01-11 09:41:20
人工智能 BP神经网络 蝴蝶花 源代码,包括输入层、隐含层、输出层的设计,以及对神经网络的训练,部分代码如下: Alpha=0.1; Beta=0.1; Gamma=0.85; Tor=0.0005; Maxepoch=2000; Accuracy=0; Ntrain=115; Ntest=35; %assign random values in the range [-1, +1] V=2*(rand(h,i)-0.5); W=2*(rand(i,j)-0.5); Pi=2*(rand(1,i)-0.5); Tau=2*(rand(1,j)-0.5); DeltaWOld(i,j)=0; %set the delat of Wij to 0 DeltaVOld(h,i)=0; %set the delat of Vij to 0 DeltaPiOld(i)=0; %set the delat of Pi to 0 DeltaTauOld(j)=0; %set the delat of Tau to 0 % the learning process Epoch=1; Error=10; % load the training set data and test set data load data.dat

网友评论

  • 可以用,读入文件即可
  • matlab的代码,可是图像结果出不来,基本没用
  • matlab的代码,而且仅仅是使用了神经网络工具箱,毫无意义。。。