NO.PZ2015120204000053
问题如下:
Once satisfied with the final set of features, Steele selects and runs a model on the training set that classifies the text as having positive sentiment (Class “1” or negative sentiment (Class “0”). She then evaluates its performance using error analysis. The resulting confusion matrix is presented in Exhibit 2.
Exhibit 2 Confusion Matrix
Based on Exhibit 2, the model’s accuracy metric is closest to:
选项:
A. 77%
B. 81%
C. 85%
解释:
A is correct. The model’s accuracy, which is the percentage of correctly predicted classes out of total predictions, is calculated as:
Accuracy = (TP + TN)/(TP + FP + TN + FN).
Accuracy = (182 + 96)/(182 + 52 + 96 + 31) = 0.7701 (77%).