Compute overall accuracy and per-class accuracy from a confusion matrix, for model evaluation and error analysis reports.
类别不均衡时准确率易误导,应结合其他指标。