I couldn't find anything useful about accuracy of results in neural network,
I run character recognition example in Matlab, after network training and simulation by input test, how can I compute accuracy of output result after simulation?
for some reasons(Research) after network training I want to change some neuron weights and simulate by input test then how can I compute its output accuracy compared to exact output result? and Is this task possible in neural network,
Thanks in advance for any help.
When you train a network using something like
[net,tr] = train(net,x,t)
wherenet
is a configured network,x
is an input matrix, andt
is a targets matrix, the second returned argumenttr
is the training record. If you just displaytr
on the console you get something that looks likewhich has everything about the training results. Matlab has some built in functions for operating on this record, the most useful of which I find to be:
plotperform(tr)
- plot performance calculated byperformFcn
intr
plotconfusion(t,y)
- plots confusion matrix which is a very concise graphical display of how your network misclassified things, and shows percentages of correct/incorrect in each class as well as total.t
is the targets matrix andy
is the computed output, which you can extract usingy=net(x)
forx
input matrix.