Skip to content

Commit

Permalink
None=>nan
Browse files Browse the repository at this point in the history
  • Loading branch information
pufanyi committed Mar 12, 2024
1 parent 5212083 commit 2ba3391
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mmbench/cc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def mmbench_cn_cc_process_results(doc, results):
}
option_candidate = ["A", "B", "C", "D", "E"]
for c in option_candidate:
data[c] = doc.get(c, None)
data[c] = doc.get(c, "nan")
return data


Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mmbench/cn_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def mmbench_process_results(doc, results):
}
option_candidate = ["A", "B", "C", "D", "E"]
for c in option_candidate:
data[c] = doc.get(c, None)
data[c] = doc.get(c, "nan")
return data


Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mmbench/en_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def mmbench_process_results(doc, results):
}
option_candidate = ["A", "B", "C", "D", "E"]
for c in option_candidate:
data[c] = doc.get(c, None)
data[c] = doc.get(c, "nan")
return data


Expand Down

0 comments on commit 2ba3391

Please sign in to comment.