How to train a neural network to 0.1 error rate?
Show older comments
Hello,
I have written this code to train a neural network with 500 samples as the inputs and 32 attributes.Its a classification problem and i have two classes in the target.
net=fitnet(30,'trainlm');
net.divideParam.trainRatio=.7;
net.divideParam.valRatio=.15;
net.divideParam.testRatio=.15;
[net,tr] = train(net,input500',target500');
Output=net(sample')';
the code is working although the output of the sample isn't perfect yet. I need explanation on how i can calculate error rate after each epoch. Also i want the neural network to continue its training until the error rate is less than 0.1 Please how can i achieve this. Thanks in anticipation.
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!