MATLAB: How to calculate the error in Neural Network Back Propagation Network

bpnneural network

sir,
My doubt regards how to make the minum error rate =0.001
net = newff(input,target,10,{'tansig' 'purelin'},'trainlm');
nsch.trainparam.show=3;
nsch.trainparam.lr=0.1;
nsch.trainparam.mc=0.9;
nsch.trainparam.epochs=100;
nsch.trainparam.goal=1e-30;
net = train(net,input,target);
res=sim(net,input);

Best Answer

Use as many defaults as possible
MSEgoal = 0.01*mean(var(target',1))
MinGrad = MSEgoal/100
net = newff(input,target);
net.trainParam.goal = MSEgoal;
net.trainParam.min_grad = MinGrad;
[ net tr output error ] = train(net, input, target);
For details, search ANSWERS using the search word msegoal
Hope this helps.
Greg
Thank you for formally accepting my answer
Greg