p=[25.6,25.5,26.2,25.3,25.3,23.4,23.7,26.7,26.3,26.9,27.9,27.8,28.5,29.6,29.1,29.4,29.5;
0.38,0.39,0.37,0.34,0.5,0.47,0.44,0.34,0.33,0.32,0.29,0.30,0.27,0.25,0.24,0.26,0.23;
994.5,994.6,994.8,995.1,995.2,995.2,995.1,990.9,990.9,990.7,990.5,990.5,990.4,990.3,989.9,989.8,989.6;
7600,7600,7600,7000,6100,5000,5300,9100,10000,10000,10100,11500,10500,10500,10500,11200,11500;
2000,2000,2000,2000,2000,2000,2000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000];
t=[7830,14858,13492,14489,14846,14490,21864,19540.4,23548.4,19880.1,22031.1,30207,22234,25532,10769,21699,12481];
net=newff(minmax(p),[5 1],{'tansig' ,'logsig'},'trainlm');
net.trainParam.show=50;
net.trainParam.epochs=1000;
net.trainParam.goal=0.01;
LP.lr=0.1;
net=train(net,p,t);
p_test=[29.5,0.23,989.6,11500,5000];
out=sim(net,p_test);
====================================================================================
TRAINLM, Epoch 0/1000, MSE 3.64717e+008/0.01, Gradient 4.33024e+008/1e-010
TRAINLM, Epoch 1/1000, MSE 3.64716e+008/0.01, Gradient 1.89429e-111/1e-010
TRAINLM, Minimum gradient reached, performance goal was not met.
??? Error using ==> network.sim
Inputs are incorrectly sized for network.
Matrix must have 5 rows.
Error in ==> Untitled1 at 14
out=sim(net,p_test);
上面是我的程序 ,下面是出错信息。
各位请帮忙看看到底是什么原因啊! |