0%

confusion matrix

 

實際正類 (Actual Positive) 實際負類 (Actual Negative)
預測正類 (Predicted Positive) TP (True Positive)
真陽性
FP (False Positive)
偽陽性
預測負類 (Predicted Negative) FN (False Negative)
偽陰性
TN (True Negative)
真陰性

核心指標公式

  • 準確率 (Accuracy):
    $$\text{Accuracy} = \frac{TP + TN}{TP + TN + FP + FN}$$

  • 精確率 (Precision):
    $$\text{Precision} = \frac{TP}{TP + FP}$$

  • 召回率 (Recall):
    $$\text{Recall} = \frac{TP}{TP + FN}$$

  • F1 分數 (F1-Score):
    $$F1 = 2 \times \frac{\text{Precision} \times \text{Recall}}{\text{Precision} + \text{Recall}}$$

關閉