def METHOD_NAME(self):
    '''计算Acc。
    '''
    total = self.confusion_matrix.sum()
    total_tp = 0
    for c in range(self.num_classes):
        total_tp += self.confusion_matrix[c][c]
    if total == 0:
        mean_acc = 0
    else:
        mean_acc = float(total_tp) / total
    vij = np.sum(self.confusion_matrix, axis=0)
    category_acc = []
    for c in range(self.num_classes):
        if vij[c] == 0:
            acc = 0
        else:
            acc = self.confusion_matrix[c][c] / float(vij[c])
        category_acc.append(acc)
    return np.array(category_acc), mean_acc