Unverified Commit 924c9790 authored by Lintang Sutawika's avatar Lintang Sutawika Committed by GitHub
Browse files

Update evaluator.py

parent d33149c5
......@@ -484,7 +484,7 @@ def evaluate(
if "alias" in metrics:
metrics.pop("alias")
if configs[task]["weight_by_size"]:
if ("weight_by_size" in configs) and configs[task]["weight_by_size"]:
current_size = metrics.pop("samples")
else:
metrics.pop("samples")
......
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