File size: 407 Bytes
6169a19
 
 
 
 
 
 
 
 
 
1af84cb
6169a19
1
2
3
4
5
6
7
8
9
10
11
12
13
from compute_accuracy import compute_accuracy

def eval_final(test_metafile,dev_metafile,to_eval):
    print("Computing accuracy...")
    result_test = compute_accuracy(to_eval, test_metafile)
    result_dev = compute_accuracy(to_eval, dev_metafile)

    output = {"dev avg": result_dev['answered_acc'],
              "test avg": result_test['answered_acc'],
              **result_test}
    return output