OCDocker.Workbench.MetricsMatrix module

Read-only metric matrix helpers for Workbench result manifests.

OCDocker.Workbench.MetricsMatrix.build_metric_matrix(root, *, metric_names=None, max_depth=6)[source]

Build a read-only metric matrix from result manifests.

Parameters:
  • root (str or pathlib.Path) – Workspace root or result manifest file to scan.

  • metric_names (tuple[str, ...] or list[str] or None) – Optional metric names to include. If omitted, all discovered flattened keys are used.

  • max_depth (int) – Maximum directory depth below root to scan.

Returns:

Read-only metric matrix payload for GUI tables and plots.

Return type:

MetricMatrix