Commit c75ce009 authored by lintangsutawika's avatar lintangsutawika
Browse files

fixed error in aggregation

parent 829280e8
...@@ -514,7 +514,6 @@ class ConfigurableTask(Task): ...@@ -514,7 +514,6 @@ class ConfigurableTask(Task):
] ]
else: else:
for metric_config in self._config.metric_list: for metric_config in self._config.metric_list:
assert "metric" in metric_config assert "metric" in metric_config
metric_name = metric_config["metric"] metric_name = metric_config["metric"]
kwargs = { kwargs = {
...@@ -547,9 +546,8 @@ class ConfigurableTask(Task): ...@@ -547,9 +546,8 @@ class ConfigurableTask(Task):
f"metric {metric_name} is defined, but aggregation is not" f"metric {metric_name} is defined, but aggregation is not"
f"using default aggregation for {metric_name}" f"using default aggregation for {metric_name}"
) )
aggregation = DEFAULT_AGGREGATION_REGISTRY[metric_name] self._aggregation_list[metric_name] = DEFAULT_AGGREGATION_REGISTRY[
self._aggregation_list[metric_name] = AGGREGATION_REGISTRY[ metric_name
aggregation
] ]
if "higher_is_better" in metric_config: if "higher_is_better" in metric_config:
......
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