Precision, Recall, and F1

  • TP: Predict the positive class as the number of positive classes
  • FN: Number of predicted positive classes as negative classes
  • FP: predict the number of negative classes as positive classes
  • TN: predict the negative class as the number of negative classes
  • Precision (precision) precision:

       P=TP/(TP+FN)

  • Recall rate (recall rate) recall:

       R=TP/(TP+FN)

      The higher the precision, the lower the recall, and the higher the recall, the lower the precision.

      To balance precision and recall, use the F1 value. The F1 value is the harmonic mean of precision and recall.

  • F1=2*P*R/(P+R)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325705473&siteId=291194637