modosaic.cli.summary¶
modosaic.cli.summary ¶
Formatting helpers for CLI run summaries.
format_summary ¶
format_summary(results, experiment_path, *, as_json=False)
Format pipeline results for CLI output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
results
|
Sequence[Any]
|
Pipeline sample results. |
required |
experiment_path
|
Path
|
Directory where artifacts were written. |
required |
as_json
|
bool
|
Whether to return a JSON summary instead of text. |
False
|
Returns:
| Type | Description |
|---|---|
str
|
Formatted summary string. |
Source code in modosaic/cli/summary.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |