我的程序如下 刚学请大神指点 顺便帮改正一下 小弟不胜感激!!!
input_train=[280,280,280,280,280,280,220,240,260,280,300,320,280,280,280,280,280,280,280,280,280,280,280,280,240,240,240,280,280,280,320,320,320,260,280,300,320,340,320,320,320,320,320,320,320,320,320,320,320,320,320,320,320;180,180,180,180,180,180,180,180,180,180,180,180,60,100,140,180,220,260,180,180,180,180,180,180,60,100,180,60,100,180,60,100,180,51,51,51,51,51,51,64,77,89,102,51,51,51,51,51,51,51,51,51,51;454,454,454,454,454,454,454,454,454,454,454,454,454,454,454,454,454,454,363,409,454,499,545,590,454,499,545,545,454,499,499,545,454,499,499,499,499,499,499,499,499,499,499,409,454,499,545,590,499,499,499,499,499;2,3,4,5,6,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,5,4,5,3,5,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,4,5,6];
output_train=[19,20,19,17,15,15.5,16,16.7,13,20,17.5,17.3,25.8,22.3,21.2,14.5,16,15.2,20,22,21.5,14.1,13.5,16.9,19.2,16.8,11.3,18.3,15.2,13.5,16.5,19.2,14.9,5.1,5.6,5.9,4.9,4.6,6.1,5.3,4.8,4.4,4.0,6.1,6.9,6.0,5.7,4.9,4.4,4.9,6.7,6.6,6.1];
[inputn,inputps]=mapminmax(input_train);
net=feedforwardnet(13);
net.trainFcn='trainr';
net.trainParam.mu=0.01;
net.trainParam.mu_dec=0.2;
net.trainParam.show=1;
net.trainParam.epochs=100000;
net.trainParam.mu_inc=10;
net.trainParam.goal=0.1;
net=train(net,input_train,output_train);