DEV Community

Antonny Muiko
Antonny Muiko

Posted on

How is the precision and recall calculated in the classification report?

Confusion Matrix
[[4 2]

 [1 3]]

Accuracy Score : 0.7

Report :

              precision    recall  f1-score   support

          0       0.80      0.67      0.73         6

          1       0.60      0.75      0.67         4

avg / total       0.72      0.70      0.70        10

from the formular precision = true positive/(true positive + false positive)

4/(4+2) = 0.667

But this…

Top comments (0)