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
e1e05b19
Commit
e1e05b19
authored
Sep 13, 2023
by
lintangsutawika
Browse files
cleaner process
parent
91d84840
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lm_eval/evaluator.py
lm_eval/evaluator.py
+6
-0
No files found.
lm_eval/evaluator.py
View file @
e1e05b19
...
...
@@ -480,6 +480,9 @@ def evaluate(
results
[
task_or_group
][
metric
]
=
np
.
average
(
results
[
task_or_group
][
metric
])
versions
[
task_or_group
]
=
"N/A"
print
(
"task_hierarchy"
)
print
(
task_hierarchy
)
print
(
"--"
)
for
group
in
task_hierarchy
.
keys
():
if
group
not
in
task_order
:
task_order
[
group
]
=
0
...
...
@@ -490,6 +493,9 @@ def evaluate(
else
:
task_order
[
task
]
=
1
+
task_order
[
group
]
print
(
"task_order"
)
print
(
task_order
)
print
(
"--"
)
for
task_or_group
,
order
in
task_order
.
items
():
tabbed_name
=
">"
*
order
+
task_or_group
results_agg
[
tabbed_name
]
=
results
[
task_or_group
]
...
...
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