QuAcc/baselines/rca.py

6 lines
145 B
Python
Raw Permalink Normal View History

2023-11-08 17:26:44 +01:00
import numpy as np
def get_score(pred1, pred2, labels):
return np.mean((pred1 == labels).astype(int) - (pred2 == labels).astype(int))