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

2 Ansichten (letzte 30 Tage)
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!

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by