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
a6179b49
Unverified
Commit
a6179b49
authored
Oct 19, 2023
by
Lintang Sutawika
Committed by
GitHub
Oct 19, 2023
Browse files
Update registry.py
Removed `get_default_aggregation`
parent
cf617ab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
lm_eval/api/registry.py
lm_eval/api/registry.py
+0
-9
No files found.
lm_eval/api/registry.py
View file @
a6179b49
...
@@ -158,15 +158,6 @@ def get_aggregation(name):
...
@@ -158,15 +158,6 @@ def get_aggregation(name):
)
)
def
get_default_aggregation
(
metric_name
):
try
:
return
DEFAULT_AGGREGATION_REGISTRY
[
metric_name
]
except
KeyError
:
eval_logger
.
warning
(
f
"No default aggregation metric for metric '
{
metric_name
}
'!"
)
def
is_higher_better
(
metric_name
):
def
is_higher_better
(
metric_name
):
try
:
try
:
return
HIGHER_IS_BETTER_REGISTRY
[
metric_name
]
return
HIGHER_IS_BETTER_REGISTRY
[
metric_name
]
...
...
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