We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fa2392 commit 65e75eaCopy full SHA for 65e75ea
main.py
@@ -177,11 +177,11 @@ def compute_metrics_acc(eval_preds):
177
correct = 0
178
assert len(preds) == len(targets)
179
for idx, pred in enumerate(preds):
180
- referece = targets[idx]
181
- referece = extract_ans(referece)
+ reference = targets[idx]
+ reference = extract_ans(reference)
182
extract_pred = extract_ans(pred)
183
best_option = extract_pred
184
- if referece == best_option:
+ if reference == best_option:
185
correct +=1
186
return {'accuracy': 1.0*correct/len(targets)}
187
0 commit comments