为什么这个程序运行不了?
P=[1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00;0.80 0.87 0.89 0.82 0.78 0.80 0.75 0.33;
0.67 0.93 0.22 0.75 1.00 0.80 0.49 0.66;0.92 0.80 0.89 0.92 0.89 0.80 1.00 1.00;
0.87 0.93 1.00 1.00 1.00 1.00 1.00 1.00;0.80 0.72 0.89 0.82 0.89 080 0.75 1.00;
0.67 0.72 0.67 0.66 0.67 0.60 0.49 0.66;0.72 0.80 0.78 0.75 0.78 0.80 0.75 0.66;
0.60 0.60 0.56 0.58 0.56 0.60 0.49 0.66;0.47 0.47 0.44 0.41 0.44 0.40 0.49 0.35];
T=[1.00 0.79 0.74 0.81 0.96 0.83 0.69 0.75 0.58 0.51];
net=newff(minmax(P),[17,1],{'tansig','logsig'},'trainlm');
net.trainParam.epochs=1000;
net.trainParam.goal=0.001;
net=train(net,P,T);
Y=sim(net,P);
运行显示:
** Warning in INIT
** Network "input{1}.range" has a row with equal min and max values.
** Constant inputs do not provide useful information.
Error using ==> network.train
Targets are incorrectly sized for network.
Matrix must have 8 columns.
Error in ==> Untitled2 at 6
net=train(net,P,T);
数学作业帮用户2017-10-03举报