Skip to content

Commit

Permalink
Fix percentage calculation in make_table function
Browse files Browse the repository at this point in the history
  • Loading branch information
pufanyi committed Apr 10, 2024
1 parent bf4c78b commit 1d0ddc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lmms_eval/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ def make_table(result_dict, column: str = "results"):

points = "N/A"
if v is not None:
if 0 <= v <= 1:
v *= 100
points = "%.4f" % v

if m + "_stderr" + "," + f in dic:
Expand Down

0 comments on commit 1d0ddc8

Please sign in to comment.