Warning: NEWFF used in an obsolete way 如何解决
>> p=p =
0 0 1 1
0 1 0 1
>> t =
t =
1 0 0 1
>> net=newff(minmax(p),,{'tansig','purelin'},'trainlm');
Warning: NEWFF used in an obsolete way.
> In nntobsu at 18
In newff at 86
See help for NEWFF to update calls to the new argument list.
>> =train(net,p,t);
>> a =sim(net,p)
a =
1.0000 0.0000 -0.0000 1.0000
初学,向各位学长请教,在matlabR2008中,上边的这个警告是怎么回事??谢谢!
[ 本帖最后由 eight 于 2008-4-28 17:16 编辑 ] 原帖由 selfcherish 于 2008-4-25 21:39 发表 http://www.chinavib.com/forum/images/common/back.gif
>> p=
p =
0 0 1 1
0 1 0 1
>> t =
t =
1 0 0 1
>> net=newff(minmax(p),,{'tansig','purelin'},'trainlm');
Warning ...
大概是代码net=newff(minmax(p),,{'tansig','purelin'},'trainlm')中的参数格式不符合新版本的参数格式!你可以在help帮助文件里查找newff命令,重新改一下代码!
另外,按照你的代码,我做出来的结果如下:
a =
1.0000 0.0000 0.5000 0.5000 原帖由 selfcherish 于 2008-4-25 21:39 发表 http://www.chinavib.com/forum/images/common/back.gif
>> p=
p =
0 0 1 1
0 1 0 1
>> t =
t =
1 0 0 1
>> net=newff(minmax(p),,{'tansig','purelin'},'trainlm');
Warning ... 你所使用的newff调用方式过时了,其实matlab已经给出了你最有用的信息了:See help for NEWFF to update calls to the new argument list. 这个你应该能看懂吧 谢谢分享 help newff
页:
[1]