How to get accuracy for each class in training dataset, testing dataset and validation dataset and overall accuracy

4 次查看(过去 30 天)
Confusion.PNG
I have trained a neural network and the confusion result is as shown in figure. I want to extract the detailed results in each line <not as an figure> as:
Accuracy of training confusion matrix for class 1= 100%
Accuracy of training confusion matrix for class 2= 100%
Accuracy of training confusion matrix = 100%
Accuracy of validation confusion matrix for class 1= 97.9%
Accuracy of validation confusion matrix for class 2= 99.5%
Accuracy of validation confusion matrix = 98.7%
Accuracy of test confusion matrix for class 1= 97.1%
Accuracy of test confusion matrix for class 2= 99.6%
Accuracy of test confusion matrix = 98.3%
Overall accuracy for class 1 = 99.2%
Overall accuracy for class 2 =99.9%
Overall accuracy = 99.6%
Thank you so much!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by