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

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

AndyTSOI · 2021年07月09日

为什么不可以用1÷p分之一+r分之一???算出来数值不一样

NO.PZ2015120204000052

问题如下:

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 F1 score is closest to: 

选项:

A.

77%

B.

81%

C.

85%

解释:

B is correct. The model’s F1 score, which is the harmonic mean of precision and recall, is calculated as:
F1 score = (2 × P × R)/(P + R).
F1 score =
(2 × 0.7778 × 0.8545)/(0.7778 + 0.8545) = 0.8143 (81%).

​为什么不可以用1÷p分之一+r分之一???算出来数值不一样

1 个答案

星星_品职助教 · 2021年07月09日

同学你好,

Fi score的公式定义为:

F1 score = (2 × P × R)/(P + R).,在你列式的基础上还需要乘以2.