Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
d6f8faad
Commit
d6f8faad
authored
Dec 12, 2023
by
lintangsutawika
Browse files
allow N/A as a possible value for Stderr
parent
91279a6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lm_eval/utils.py
lm_eval/utils.py
+3
-1
No files found.
lm_eval/utils.py
View file @
d6f8faad
...
@@ -371,7 +371,9 @@ def make_table(result_dict, column: str = "results"):
...
@@ -371,7 +371,9 @@ def make_table(result_dict, column: str = "results"):
if
m
+
"_stderr"
+
","
+
f
in
dic
:
if
m
+
"_stderr"
+
","
+
f
in
dic
:
se
=
dic
[
m
+
"_stderr"
+
","
+
f
]
se
=
dic
[
m
+
"_stderr"
+
","
+
f
]
values
.
append
([
k
,
version
,
f
,
n
,
m
,
"%.4f"
%
v
,
"±"
,
"%.4f"
%
se
])
if
se
!=
"N/A"
:
se
=
"%.4f"
%
se
values
.
append
([
k
,
version
,
f
,
n
,
m
,
"%.4f"
%
v
,
"±"
,
se
])
else
:
else
:
values
.
append
([
k
,
version
,
f
,
n
,
m
,
"%.4f"
%
v
,
""
,
""
])
values
.
append
([
k
,
version
,
f
,
n
,
m
,
"%.4f"
%
v
,
""
,
""
])
k
=
""
k
=
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment