Increasing the number of epochs to reach the performance goal
Show older comments
Hello,
I am training the neural network with input vector of 85*650 and target vector of 26*650. Here is the list of parameters that I have used
net.trainParam.max_fail = 6;
net.trainParam.min_grad=1e-5;
net.trainParam.show=10;
net.trainParam.lr=0.9;
net.trainParam.epochs=13500;
net.trainParam.goal=0.001;
Number of hidden nodes=76
As you can see ,I have set the number of epochs to 13500. Is it OK to set the number of epochs to such a large number?. Performance goal is not reaching if the number of epochs is decreased and I am getting a bad classification while testing.
1 Comment
An Hoang
on 8 Oct 2017
I thought your epochs is so big and too much training is actually bad because the network overfits to the training data, and then performs badly against new data that it hasn't never seen it before.
Accepted Answer
More Answers (1)
Greg Heath
on 23 Apr 2014
One problem you have is that you are specifying the mse and mingrad goals without considering the scale of the target. I find that reasonable goals are
MSEgoal = 0.01*mean(var(ttrn',1))
MinGrad = MSEgoal/ 200
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!