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
c75ce009
Commit
c75ce009
authored
Jun 07, 2023
by
lintangsutawika
Browse files
fixed error in aggregation
parent
829280e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lm_eval/api/task.py
lm_eval/api/task.py
+2
-4
No files found.
lm_eval/api/task.py
View file @
c75ce009
...
...
@@ -514,7 +514,6 @@ class ConfigurableTask(Task):
]
else
:
for
metric_config
in
self
.
_config
.
metric_list
:
assert
"metric"
in
metric_config
metric_name
=
metric_config
[
"metric"
]
kwargs
=
{
...
...
@@ -547,9 +546,8 @@ class ConfigurableTask(Task):
f
"metric
{
metric_name
}
is defined, but aggregation is not"
f
"using default aggregation for
{
metric_name
}
"
)
aggregation
=
DEFAULT_AGGREGATION_REGISTRY
[
metric_name
]
self
.
_aggregation_list
[
metric_name
]
=
AGGREGATION_REGISTRY
[
aggregation
self
.
_aggregation_list
[
metric_name
]
=
DEFAULT_AGGREGATION_REGISTRY
[
metric_name
]
if
"higher_is_better"
in
metric_config
:
...
...
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