There are 14 images of cows and buffalos. There are 8 images of cows and 6 images of buffalos. The model has predicted 5 cows and 4 buffalos. It identifies 1 cow as buffalo and 2 buffalos as cows. Compute the accuracy, precision, recall, and F1 score.
Topic | Evaluation (project cycle) |
Type | Short Answer Type |
Class | 10 |
Accuracy = CP / TP = (5 + 4) / (8 + 6) = 9/14= 0.64
Precision = TP / (TP + FP) = 5 / (5 + 2) = 5/7 = 0.71
Recall = TP / (TP + FN) = 5 / (5+1) = 5/6 = 0.83
F1 Score = (2 x precision x recall) / (precision + recall) = (2 x 0.71x 0.83) / (0.71 + 0.83) = 1.1786/1.54 = 0.77
Study more about Evaluation at Evaluation Class 10