Commit 9fbe6eef authored by lintangsutawika's avatar lintangsutawika
Browse files

changed warning message

parent 90d818da
...@@ -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),
) )
......
...@@ -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 "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment