ignore id score
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user