OCDocker.Workbench.Decision module

Read-only decision-analysis helpers for Workbench result manifests.

OCDocker.Workbench.Decision.build_metrics_catalog(root, *, max_depth=6)[source]

Build a read-only catalog of metric coverage across result manifests.

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

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

Returns:

Read-only metric catalog.

Return type:

MetricCatalog

OCDocker.Workbench.Decision.build_pareto_front(root, *, objectives, max_depth=6)[source]

Build a read-only Pareto front from result manifest metrics.

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

  • objectives (tuple[ParetoObjective, ...]) – Pareto objectives.

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

Returns:

Read-only Pareto front payload.

Return type:

ParetoFront

OCDocker.Workbench.Decision.parse_pareto_objective(value)[source]

Parse a CLI Pareto objective specification.

Parameters:

value (str) – Objective in metric or metric:min|max form.

Returns:

Parsed objective.

Return type:

ParetoObjective