Artificial intelligence · University
Positive-class F1 score
This is a class-specific score, not a multiclass macro average or a cost-sensitive objective.
Method and conditions
This is a class-specific score, not a multiclass macro average or a cost-sensitive objective.
F1 = 2TP/(2TP+FP+FN)
Worked examples
For TP=46, FP=38, FN=48, compute positive-class F1 score. Round the final result to 4 decimal places if needed.
Substitute into 2TP/(2TP+FP+FN): 92/178.
0.5169
For TP=36, FP=59, FN=31, compute positive-class F1 score. Round the final result to 4 decimal places if needed.
Substitute into 2TP/(2TP+FP+FN): 72/162.
0.4444
Try it
For TP=45, FP=51, FN=27, compute positive-class F1 score. Round the final result to 4 decimal places if needed.
For TP=27, FP=13, FN=56, compute positive-class F1 score. Round the final result to 4 decimal places if needed.
Check your work
Answers and marking notes
- 0.5357
Substitute into 2TP/(2TP+FP+FN): 90/168.
- 0.439
Substitute into 2TP/(2TP+FP+FN): 54/123.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.