倒傳遞網路 正規化數據 3層
net = newff(MAPMINMAX(input_del_04),MAPMINMAX(target_del_04),[20,20,1],{'tansig' 'tansig' 'purelin'},'traingdx');
net.trainParam.show = 50;
net.trainParam.lr = 0.1;
net.trainParam.epochs = 2000;
net.trainParam.goal =10e-4;
net = train(net,MAPMINMAX(input_del_04),MAPMINMAX(target_del_04));
output_s=sim(net,MAPMINMAX(input_del_04));
output=postmnmx(output_s,mint,maxt);
Error=target_del_04-output;
MSE=mse(Error)
plot(target_del_04, 'DisplayName', 'target_del_04', 'YDataSource', 'target_del_04'); hold all;
plot(output, 'DisplayName', 'output', 'YDataSource', 'output'); hold off ;figure(gcf)
output_2s=sim(net,MAPMINMAX(i_w_r_sum_082));
output2=postmnmx(mapminmax(output_2s),mint,maxt);
output_3s=sim(net,MAPMINMAX(i_w_r_sum0901));
output3=postmnmx(mapminmax(output_3s),mint,maxt);