OCDocker.Workbench.Leaderboard module¶
Read-only metric leaderboard helpers for Workbench result manifests.
- OCDocker.Workbench.Leaderboard.build_metric_leaderboard(root, *, metric_name, mode='max', max_depth=6)[source]¶
Build a read-only metric leaderboard from result manifests.
- Parameters:
root (str or pathlib.Path) – Workspace root or result manifest file to scan.
metric_name (str) – Metric name or dotted metric path to rank.
mode (MetricSortMode) – Ranking mode, either
maxormin.max_depth (int) – Maximum directory depth below root to scan.
- Returns:
Read-only leaderboard payload.
- Return type:
MetricLeaderboard