Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2007-05-25, 19:26   #1
tigris
初级会员
 
注册日期: 2007-05-08
帖子: 2
声望力: 0
tigris 正向着好的方向发展
默认 【求助】神经网络 结果问题:performance goal was not met

我的程序
clear
P=[500 300 40;750 350 40;940 400 40;1200 480 40;
1700 600 60;2100 850 60;2700 1250 60;3100 1650 60;
3350 1850 80;3500 2200 80;3700 2400 80;3900 2200 80;]';
T=[0;45;45;115;
160;245;245;315;
385;385;385;385;]';
u=T;
for i=1:3
P(i,=(P(i,-min(P(i,))/(max(P(i,)-min(P(i,));
end
for i=1:1
T(i,: )=(T(i,: )-min(T(i,: )))/(max(T(i,: ))-min(T(i,: )));
end

net=newff(minmax(P),[12,10,17,1],{'tansig','purelin','purelin','purelin'},'traingd'); % @@@@
net.trainParam.show=50;
net.trainParam.epochs=2000;
net.trainParam.goal=0.1;
net.trainParam.lr=0.1;
net=train(net,P,T);
P_test=[500 300 40;750 350 40;940 400 40;1200 480 40;
1700 600 60;2100 850 60;2700 1250 60;3100 1650 60;
3350 1850 80;3500 2200 80;3700 2400 80;3900 2200 80;]'; %@@@@
out=sim(net,P_test);

for i=1:1
predict(i)=out(i)* (max(u(i,)-min(u(i,))+ min(u(i,);
end
predict



pause
plot(P,T,'r')
hold on
plot(P,predict,'b')
hold off




运行后,命令窗口出现语句
TRAINGD, Maximum epoch reached, performance goal was not met.


predict =

NaN


看不懂 谁知道吗?
tigris 当前离线   回复时引用此帖
旧 2007-05-26, 10:30   #2
ciji1995
游客
 
帖子: n/a
默认

不知道你要实现什么功能,也没有注释,这样的程序不好看啊
  回复时引用此帖
旧 2008-03-17, 19:54   #3
一江春水
初级会员
 
注册日期: 2008-03-17
年龄: 42
帖子: 4
声望力: 0
一江春水 正向着好的方向发展
默认

TRAINGD, Maximum epoch reached, performance goal was not met
的意思是 最大训练次数到了,但是没有达到要求的误差范围,
你把epoch的值改大一点就可以了。
一江春水 当前离线   回复时引用此帖
回复

主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



所有时间均为北京时间。现在的时间是 15:48


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.