我在做BP神经网络编程时,

%定义输入向量和目标向量

P=[0.849646203        0.849942194        0.849897659        0.849871077        0.849367614        0.849846169        0.84896711        0.849745586        0.849216993        0.678745604        0.846746705        0.84942891        0.849652651; 0.849619677        0.849935125        0.849882556        0.849869503        0.849444193        0.849848266        0.849047903        0.849755762        0.849305567        0.671412334        0.847140158        0.849366077        0.849619858; 0.849616363        0.849938492        0.849875749        0.84987048        0.849517712        0.849844516        0.849099289        0.849772515        0.849400822        0.660732826        0.847431004        0.849313087        0.849547383;0.849603051        0.849940894        0.849863911        0.849867863        0.849583511        0.849852226        0.849134509        0.849782719        0.849463736        0.668045823        0.847765964        0.849244964        0.849530033; 0.849593697        0.84994316        0.84985285        0.849873332        0.849656333        0.849852808        0.849107609        0.84979193        0.849556823        0.654326567        0.847555449        0.849174599        0.849525181; 0.849614696        0.849957235        0.849859762        0.849891035        0.849736012        0.849865295        0.849176513        0.849819627        0.84968378        0.652642134        0.848623281        0.849261426        0.849419285; 0.849638219        0.849971033        0.84986944        0.849893867        0.849779088        0.849870057        0.849232098        0.849837826        0.849732449        0.64864295        0.847929066        0.84926583        0.84953372; 0.849628512        0.849979894        0.849853624        0.849903859        0.849824812        0.849887713        0.849295095        0.84985223        0.849784399        0.649517263        0.84818743        0.849227887        0.849483362];

T=[0.85001609;0.85001609;0.85001609;0.85001609;0.85001609;0.85001609;0.85001609;0.85001609];

%创建 BP 网络并定义训练函数及参数

net=newff([0.849942194 0.678745604; 0.849935125 0.671412334; 0.849938492 0.660732826; 0.849940894 0.668045823; 0.84994316 0.654326567; 0.849957235 0.652642134; 0.849971033 0.64864295; 0.849979894 0.649517263], [5,1],{'tansig','logsig'},'traingdx');

net.trainParam.goal = 0.00001;

net.trainParam.epochs = 25000;

%训练神经网络

[net,tr] = train(net,P);

save BPnet1 net;%保存网络

%仿真网络

点击运行,出现

警告: NEWFF used in an obsolete way.

> In obs_use at 17

In newff>create_network at 126

In newff at 101

In Untitled3 at 29

See help for NEWFF to update calls to the new argument list.

请问什么处理

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐