capture_run
report.capture_run(
seed=None,
params=None,
outcomes=None,
draw_sources=None,
note='',
)Snapshot a run’s provenance into a RunRecord.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| seed | SeedManager | int | None |
The run’s SeedManager (or raw seed). |
None |
| params | ParameterSet | None | The sampled ParameterSet, if any. |
None |
| outcomes | Outcomes | None | The resulting outcomes, if available. | None |
| draw_sources | Mapping[str, str] | None |
Where each parameter’s draws came from, for analyses that mix sources with heormodel.params.mix_draws (for example, {"beta": "ABC posterior", "u_healthy": "literature"}). |
None |
| note | str |
Free-text description of the analysis. | '' |
Example
from heormodel.report import capture_run capture_run(seed=7).seed_entropy 7