开发者:上海品职教育科技有限公司 隐私政策详情

应用版本:4.2.11(IOS)|3.2.5(安卓)APP下载

母亞珅 · 2022年08月31日

不用考虑class 0吗?

NO.PZ2015120204000051

问题如下:

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 precision metric is closest to: 






选项:

A.

78%

B.

81%

C.

85%

解释:

A is correct. Precision, the ratio of correctly predicted positive classes (true positives) to all predicted positive classes, is calculated as:

Precision (P) = TP/(TP + FP) = 182/(182 + 52) = 0.7778 (78%).

谢谢

1 个答案
已采纳答案

星星_品职助教 · 2022年08月31日

同学你好,

这道题要求 precision metric,直接代入precision的公式:Precision (P) = TP/(TP + FP) = 182/(182 + 52) = 0.7778就可以了。

需要看的是表格里的TP和FP,不用看class。

  • 1

    回答
  • 1

    关注
  • 286

    浏览
相关问题