how to calculate the classification accuracy in neural network toolbox?

Illustration
teenasmith-23 - 2021-05-26T18:47:43+00:00
Question: how to calculate the classification accuracy in neural network toolbox?

net=patternnet(10); [net,tr]=train(net,inputs,targets); outputs=net(inputs); [values,pred_ind]=max(outputs,[],1); [~,actual_ind]=max(targets,[],1); accuracy=sum(pred_ind==actual_ind)/size(inputs,2)*100; Is this correct way to calculate the classification accuracy??  

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

Search ot NEWSGROUP and ANSWERS with
 
 
 greg patternnet

and

 greg patternnet tutorial

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!