ignore id score

This commit is contained in:
YannAhlgrim
2026-07-08 11:28:18 +02:00
parent 708da38f1d
commit 372033a4d6
+4
View File
@@ -258,6 +258,10 @@ def _collect_rows(root_dir, metric_key, col_paths):
metrics = json.load(f) metrics = json.load(f)
except (OSError, json.JSONDecodeError): except (OSError, json.JSONDecodeError):
continue continue
# Only consider out-of-distribution (OOD) metrics. WILDS eval files
# record their split at the top level; "test" is the OOD split.
if not isinstance(metrics, dict) or metrics.get("split") != "test":
continue
value = _find_metric(metrics, metric_key) value = _find_metric(metrics, metric_key)
if value is None: if value is None:
continue continue