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
6439efab
Commit
6439efab
authored
Aug 09, 2024
by
lintangsutawika
Browse files
add option for custom aggregation
parent
8ad598df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lm_eval/evaluator_utils.py
lm_eval/evaluator_utils.py
+2
-0
No files found.
lm_eval/evaluator_utils.py
View file @
6439efab
...
...
@@ -474,6 +474,8 @@ def consolidate_group_results(
# compute group's pooled metric and stderr
if
metric_config
[
"aggregation"
]
==
"mean"
:
aggregate_fn
=
aggregate_subtask_metrics
elif
callable
(
metric_config
[
"aggregation"
]):
aggregate_fn
=
metric_config
[
"aggregation"
]
else
:
raise
ValueError
(
f
"Currently, only 'mean' is supported for automatically aggregating scores across groups' subtasks. Got '
{
metric_config
[
'aggregation'
]
}
' for group '
{
group_or_task
}
'"
...
...
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