analysis¶
Offline, dependency-free views of a sweep directory. Each reads the per-cell status and metrics sidecars directly (no Hydra or xarray), so they load instantly and work mid-sweep. See the exploration → paper guide for how they fit an exploration workflow.
show ¶
Read the sweep under root and return a status/metrics table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
A sweep |
required | |
metrics
|
list[str] | None
|
Restrict the metric columns to these names, in this order (default:
every metric found, discovery order). An unknown name raises
|
None
|
sort
|
str | None
|
Column to sort rows by (a swept param, |
None
|
Returns:
| Type | Description |
|---|---|
ShowResult
|
|
best ¶
Return the completed cell that optimizes metric across the sweep.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
A sweep |
required | |
metric
|
str
|
The metric to optimize; it must be a finite scalar in each cell. |
required |
mode
|
str
|
|
'max'
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
FileNotFoundError
|
If |
diff ¶
Compare two sweep directories a and b.
Cells are aligned by their swept-param combination. For each shared cell the
delta b - a is computed for every metric that is a finite scalar in both
— and only when the cell is completed on BOTH sides (a failed/skipped
cell may carry a stale sidecar from a prior attempt; its row appears with
empty deltas). Cells present in only one sweep are reported separately,
along with a diff of the two runs' environment provenance
(git/packages/python/accelerator).
Returns:
| Type | Description |
|---|---|
DiffResult
|
|
table ¶
Export a sweep's cells as CSV: one row per cell with its swept params,
status, and metrics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
A sweep |
required | |
path
|
If given, write the CSV there and return the |
None
|
|
metrics
|
list[str] | None
|
Restrict the metric columns to these names, in this order (default:
every metric found, discovery order); repeats are deduplicated. A
metric sharing a swept param's name is emitted as |
None
|
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If |
ValueError
|
If |