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

2 ビュー (過去 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 Center および File ExchangeString Parsing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by