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.
Best Answer