--- license: mit language: - en pretty_name: SynthStats demonstrations size_categories: - 1K 0 is p(r) + p(−r), with p the Normal(0.4, 0.5) density of lam, which leaves its predictive distribution unchanged. With the reference and floor model included, each task has ten programs, numbered 01 to 10. The reference is 01 and the floor model 02, followed at 03 to 06 by single attempts 1 to 4, then at 07 to 10 by loop proposals 1 to 4 (proposals 1 and 2 come from round 1, proposals 3 and 4 from round 2). For disease spread, the two programs whose outcome in `programs` and `disease_spread_program_summary` is failure at model build are single attempt 4 and loop proposal 2. The prediction and curve tables have rows for programs that pass all [the checks](https://synthstats.org/one-program/#checks-before-fitting) and receive a score. ## Fitting | Setting | Value | | --- | --- | | Fitting rows | the 80 visible observations | | Chains | 1 for the comparison; 4 for the four-chain fits | | Tuning iterations | 200 for the comparison; 1,000 per chain for the four-chain fits | | Retained posterior draws | 200 for the comparison; 1,000 per chain for the four-chain fits | | New observations simulated per draw and input | 20 for the comparison | | Predictions per input | 4,000 for the comparison | | Predictive interval used for coverage | 90%, from the 5th to the 95th percentile of the predictions | | Libraries | PyMC 5.21.1, PyTensor 2.28.3, ArviZ 0.23.4 | ## Configurations | Configuration | Rows | One row | Columns | | --- | --- | --- | --- | | `programs` (default) | 20 | one program | `task` (`dugongs` or `disease-spread`), `program_id`, `role`, `outcome` (`scored` or `failed`), `failure`, `heldout_log_score`, `source` (the PyMC program, as published at [synthstats.org/programs/dugongs](https://synthstats.org/programs/dugongs) and [synthstats.org/programs/disease-spread](https://synthstats.org/programs/disease-spread)) | | `dugongs_program_summary`, `disease_spread_program_summary` | 10 each | one program | `program_id`, `role`, `outcome`, `failure`, `heldout_log_score`, `avg_heldout_log_score` (score / 20), `covered_count`, `total` (20), `empirical_coverage` (`covered_count` / 20), `program_mcse` (Monte Carlo standard error of the program's total held-out log score) | | `dugongs_observations`, `disease_spread_observations` | 100 each | one observation | input, response, `split` (`visible`: 80 fitting rows; `heldout`: 20 scoring rows), `row` | | `dugongs_predictive_curves`, `disease_spread_predictive_curves` | 1,210 (10 programs) and 968 (8 programs) | one program at one of 121 grid inputs | `program_id`, `role`, `row`, input, `predictive_q05`, `predictive_median`, `predictive_q95` (5th, 50th and 95th percentiles of the 4,000 predictions at that input) | | `dugongs_four_chain_fits`, `disease_spread_four_chain_fits` | 10 and 8 | one program | `program_id`, `program_file`, `role`, `heldout_log_score`, `program_mcse`, `max_rhat`, `min_ess_bulk`, `min_ess_tail`, `divergences` | | `dugongs_heldout_predictions`, `disease_spread_heldout_predictions` | 200 (10 programs) and 160 (8 programs) | one program at one held-out observation | the seven curve columns, `observed_length` or `observed_Infected_Count`, `covered` (True when the response lies between `predictive_q05` and `predictive_q95`), `log_predictive_density` (log predictive density at this observation), `heldout_log_score`, `avg_heldout_log_score`, `program_mcse` (Monte Carlo standard error of the program's total held-out log score) | In the held-out prediction files, each row refers to an observation, while `heldout_log_score` and `avg_heldout_log_score` refer to the program, so the same scores recur on its rows. ## Loading ```python from datasets import load_dataset programs = load_dataset("SynthStats/synthstats-demonstrations", "programs", split="train") summary = load_dataset("SynthStats/synthstats-demonstrations", "dugongs_program_summary", split="train") ``` ## Generation records | Path | Contents | | --- | --- | | `generation/generation.json` | Program roles, outcomes, scores, source hashes, model settings and disease-spread calls | | `generation/environment.json` | Simulator reference source hashes, scoring and prediction settings, and library versions | | `generation/split.json` | Visible and held-out row indices, split seed and published observation CSV hashes | | `generation/prompts/` | Configured common prompts for both tasks; captured disease-spread messages and returned text | | `generation/requests/` | Captured disease-spread program-generation and critic requests | | `generation/responses/` | Captured disease-spread program-generation and critic responses | | `generation/simulator/` | Reference copies of the BoxingGym dugong and disease-spread simulator sources, with their MIT licence |