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
13203943
Commit
13203943
authored
May 10, 2024
by
lintangsutawika
Browse files
reformat with pre-commit
parent
f36fb47f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lm_eval/evaluator.py
lm_eval/evaluator.py
+9
-3
No files found.
lm_eval/evaluator.py
View file @
13203943
...
...
@@ -541,7 +541,6 @@ def evaluate(
task_hierarchy
=
{}
for
group_or_task
,
group_or_task_info
in
task_dict
.
items
():
# Convert to string
if
isinstance
(
group_or_task
,
ConfigurableGroup
):
group_config
=
group_or_task
.
config
...
...
@@ -555,7 +554,12 @@ def evaluate(
group_or_task
)
else
:
results
,
versions
,
_task_hierarchy
,
show_group_table
=
process_group
(
(
results
,
versions
,
_task_hierarchy
,
show_group_table
,
)
=
process_group
(
results
,
versions
,
group_or_task_info
,
...
...
@@ -568,7 +572,9 @@ def evaluate(
task_hierarchy
.
get
(
group_or_task
,
[])
)
if
(
group_config
is
None
)
or
(
group_config
[
"aggregate_metric"
]
is
False
):
if
(
group_config
is
None
)
or
(
group_config
[
"aggregate_metric"
]
is
False
):
results
[
group_or_task
][
" "
]
=
" "
continue
...
...
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