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

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

Stella · 2021年08月01日

accuracy和precision metric的区别是什么

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%).

P和precision metric的区别含义是什么
1 个答案
已采纳答案

星星_品职助教 · 2021年08月01日

同学你好,

presicion的定义为:

Precision is the ratio of correctly predicted positive classes to all predicted positive classes ,即正确预测的positive(TP)与所有预测为positive(TP+FP)的比值

计算方式为:Precision (P) = TP/(TP + FP)

-------

Accuracy的定义为:Accuracy is the percentage of correctly predicted classes out of total predictions,即所有正确的预测(TP+TN)和全部的预测的比值

计算方式为:Accuracy = (TP + TN)/(TP + FP + TN + FN)

  • 1

    回答
  • 1

    关注
  • 659

    浏览
相关问题