Compute overall accuracy and per-class accuracy from a confusion matrix, for model evaluation and error analysis reports.
類別不均衡時準確率易誤導,應結合其他指標。