Ensembles¶
abmfact ensemble runs many seeds of one setting in one engine and summarises the result. It answers the first
question about any stochastic model: what does it do on average, and how much does that vary from seed to seed?
abmfact ensemble examples/ir/monolayer.yaml --engine reference --seeds 20 \
--param experiment.max_time=1440 --metric 'last(cells)' --jobs 10 --store runs/ --out results/ensemble
Every observable is summarised at each save time across the seeds:
Column |
Meaning |
|---|---|
|
the mean and its 90% t-interval, the interval the audit and compare use (statistics) |
|
the standard deviation between seeds |
|
the 5%, 50% and 95% quantiles across seeds |
|
the seeds that reached this time |
Metrics such as last(cells) are summarised the same way, and each seed’s value is kept beside its seed. The
output folder holds ensemble.json, ensemble.csv (one row per observable and time) and report.html.
Option |
Meaning |
|---|---|
|
any engine from |
|
how many seeds, from which first seed |
|
an ABM-IR parameter for every run, repeatable |
|
an engine option, repeatable |
|
a metric to summarise, repeatable |
|
the one-sided level; intervals cover 1 − 2 alpha (90% by default) |
|
a run store: runs already in it are reused, so a larger ensemble later adds only the new seeds |
The interval is for the mean, not for a single run. To see how far one run can stray, read the quantiles. The command exits with status 1 when any run failed.