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
91279a6e
Commit
91279a6e
authored
Dec 12, 2023
by
lintangsutawika
Browse files
calculate std if items > 1
parent
f8c2cfcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+3
-1
No files found.
lm_eval/evaluator.py
View file @
91279a6e
...
...
@@ -492,8 +492,10 @@ def evaluate(
else
bootstrap_iters
,
)
if
stderr
is
not
None
:
if
stderr
is
not
None
and
len
(
items
)
>
1
:
results
[
task_name
][
metric
+
"_stderr"
+
","
+
key
]
=
stderr
(
items
)
else
:
results
[
task_name
][
metric
+
"_stderr"
+
","
+
key
]
=
"N/A"
if
bool
(
results
):
for
group
,
task_list
in
reversed
(
task_hierarchy
.
items
()):
...
...
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