mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
5 lines
163 B
Python
5 lines
163 B
Python
def compute_acc(gt_list, pred_list):
|
|
correct_num = sum(pred == gt for gt, pred in zip(gt_list, pred_list))
|
|
acc = correct_num / len(gt_list)
|
|
return acc
|