samuelam commited on
Commit
b3bee8a
1 Parent(s): e3c26ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -164,6 +164,9 @@ def add_new_eval(
164
  coverage = float("{:.1f}".format(np.average([x["has_ans"] for x in all_scores]) * 100))
165
  em = float("{:.1f}".format(np.average([1 if x["score"] == 1 else 0 for x in all_scores]) * 100))
166
  precision = float("{:.1f}".format(np.average([x["score"] for x in all_scores if x["has_ans"] == 1]) * 100))
 
 
 
167
 
168
  eval_entry = {
169
  "Model Name": model_name,
 
164
  coverage = float("{:.1f}".format(np.average([x["has_ans"] for x in all_scores]) * 100))
165
  em = float("{:.1f}".format(np.average([1 if x["score"] == 1 else 0 for x in all_scores]) * 100))
166
  precision = float("{:.1f}".format(np.average([x["score"] for x in all_scores if x["has_ans"] == 1]) * 100))
167
+ accuracy_easy = float("{:.1f}".format(accuracy_easy * 100))
168
+ accuracy_medium = float("{:.1f}".format(accuracy_medium * 100))
169
+ accuracy_hard = float("{:.1f}".format(accuracy_hard * 100))
170
 
171
  eval_entry = {
172
  "Model Name": model_name,