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
ab4dba8f
Unverified
Commit
ab4dba8f
authored
Feb 09, 2024
by
Hailey Schoelkopf
Committed by
GitHub
Feb 09, 2024
Browse files
use reversed task hierarchy for print (#1414)
parent
4c17c55c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+1
-1
No files found.
lm_eval/evaluator.py
View file @
ab4dba8f
...
@@ -515,7 +515,7 @@ def evaluate(
...
@@ -515,7 +515,7 @@ def evaluate(
results
[
task_name
][
metric
+
"_stderr"
+
","
+
key
]
=
"N/A"
results
[
task_name
][
metric
+
"_stderr"
+
","
+
key
]
=
"N/A"
if
bool
(
results
):
if
bool
(
results
):
for
group
,
task_list
in
task_hierarchy
.
items
():
for
group
,
task_list
in
reversed
(
task_hierarchy
.
items
()
)
:
if
len
(
task_list
)
==
0
:
if
len
(
task_list
)
==
0
:
# task_hierarchy entries are either
# task_hierarchy entries are either
# `group_name: [subtask1, subtask2, ...]`
# `group_name: [subtask1, subtask2, ...]`
...
...
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