`
matlab BP神经网络设置参数如下:
net.trainParam.goal = 0.09;%goal是设置目标值,期望误差
net.trainParam.max_fail = 10;
但是现实并没有实际测试并没有改变,请问是什么原因呢
程序如下:
net = newff(inputn , outputn , 5,{'softmax'} );
net.trainParam.epochs =1000;%epochs是设置迭代次数
net.trainParam.lr = 0.1;%lr是设置学习率
net.trainParam.goal = 0.09;%goal是设置目标值,期望误差
net.trainParam.min_grad=5e-8;
net.trainParam.max_fail = 10;
net.trainParam.show=10;
net.trai
NFCn = 'trainlm';
net = train(net , inputn , outputn);%网络训练
inputn_test = mapminmax('apply' , input_test , inputps);%预测数据归一化
an = sim(net , inputn_test);%网络输出预测
BPoutput = mapminmax('reverse' , an , outputps);%网络输出反归一化
`
0