Inputs are incorrectly sized for network.
P=[488.5 14.9 2293.8 95.1 4714429 811083 0;
646.9 14.3 2201.5 98.7 7047014 696674 0;
430.5 14.2 2198.9 101.8 7640133 664776 0;
390 14.9 2204.3 100.3 8841422 634697 0;
884.3 13.9 2204.3 102.4 9239068 565032 0;
841.2 14.8 2344.3 110.2 9889451 684040 0;
834.6 14.4 2188.6 106.2 10625870 822371 0;
625.0 15.3 1995.1 103.0 11102697 900706 0;
726.7 15.2 2036.6 107.1 11606127 886744 0];
T=[
5050167
4912614
4791403
4101114
3171646
2697982
3169308
3349685
3529632
4161918
3502355
];
p_test=[ 624.0 14.7 2155.1 119.3 12200598 888828
];
t_test=[5050167];
threshold=[0 100000000;0 100000000;0 100000000;0 100000000;0 100000000;0 100000000;0 100000000;];
net=newff(threshold,[7 ,1],{'tansig','purelin'},'traingd');
net.trainParam.show=50;
net.trainParam.lr=0.05;
net.trainParam.epochs=300;
net.trainParam.goal=1e-5
net=train(net,P,T);
h=sim(net,p_test,t_test);
一直显示的是如下内容
??? Error using ==> network.train at 145
Inputs are incorrectly sized for network.
Matrix must have 7 rows.
Error in ==> Untitled at 38
net=train(net,P,T);
|