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
9fbe6eef
Commit
9fbe6eef
authored
Oct 19, 2023
by
lintangsutawika
Browse files
changed warning message
parent
90d818da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lm_eval/api/registry.py
lm_eval/api/registry.py
+1
-1
lm_eval/api/task.py
lm_eval/api/task.py
+1
-1
No files found.
lm_eval/api/registry.py
View file @
9fbe6eef
...
@@ -163,7 +163,7 @@ def get_metric_aggregation(name):
...
@@ -163,7 +163,7 @@ def get_metric_aggregation(name):
return
METRIC_AGGREGATION_REGISTRY
[
name
]
return
METRIC_AGGREGATION_REGISTRY
[
name
]
except
KeyError
:
except
KeyError
:
eval_logger
.
warning
(
eval_logger
.
warning
(
"{}
not a registered
aggregation
metric
!"
.
format
(
name
),
"{}
metric is not assigned a default
aggregation!"
.
format
(
name
),
)
)
...
...
lm_eval/api/task.py
View file @
9fbe6eef
...
@@ -587,7 +587,7 @@ class ConfigurableTask(Task):
...
@@ -587,7 +587,7 @@ class ConfigurableTask(Task):
]
]
else
:
else
:
INV_AGG_REGISTRY
=
{
v
:
k
for
k
,
v
in
AGGREGATION_REGISTRY
.
items
()}
INV_AGG_REGISTRY
=
{
v
:
k
for
k
,
v
in
AGGREGATION_REGISTRY
.
items
()}
metric_agg
=
get_
default
_aggregation
(
metric_name
)
metric_agg
=
get_
metric
_aggregation
(
metric_name
)
eval_logger
.
warning
(
eval_logger
.
warning
(
f
"[Task:
{
self
.
_config
.
task
}
] metric
{
metric_name
}
is defined, but aggregation is not. "
f
"[Task:
{
self
.
_config
.
task
}
] metric
{
metric_name
}
is defined, but aggregation is not. "
f
"using default "
f
"using default "
...
...
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