def METHOD_NAME(self):
    '''计算Accuracy。
    '''
    out = {}
    k = min(self.topk, len(self.labels))
    pred_top1_label = np.argsort(self.pred_scores)[:, -1]
    pred_topk_label = np.argsort(self.pred_scores)[:, -k:]
    acc1 = sum(pred_top1_label == self.true_labels) / len(self.true_labels)
    acck = sum([
        np.isin(x, y) for x, y in zip(self.true_labels, pred_topk_label)
    ]) / len(self.true_labels)
    out['acc1'] = acc1
    out['acck'] = acck
    out['k'] = k
    return out