Dataset Viewer
Auto-converted to Parquet Duplicate
task
stringclasses
2 values
program_id
stringclasses
10 values
role
stringclasses
10 values
outcome
stringclasses
2 values
failure
stringclasses
1 value
heldout_log_score
float64
-262.13
-3.2
⌀
source
stringlengths
310
3.19k
dugongs
01-reference
Reference
scored
null
-4.6028
import numpy as np import pymc as pm def model(data): """Dugong length against age: the growth curve and priors of BoxingGym's dugongs environment, with a Normal likelihood and a fixed noise scale. """ age = np.asarray(data["age"], dtype=float) y = np.asarray(data["length"], dtype=float) with ...
dugongs
02-floor-model
Floor model
scored
null
-14.0898
import numpy as np import pymc as pm def model(data): """Floor model: ignores age and fits one mean length.""" y = np.asarray(data["length"], dtype=float) with pm.Model() as null_model: intercept = pm.Normal("intercept", mu=0.0, sigma=10.0) sigma = pm.HalfNormal("sigma", sigma=5.0) ...
dugongs
03-single-attempt-1
Single attempt 1
scored
null
-4.6292
import pymc as pm import numpy as np def model(data): """ Probabilistic model of dugong length as a function of age. Uses a von Bertalanffy growth model or similar asymptotic growth curve. The von Bertalanffy model is commonly used for animal growth: L(t) = L_inf * (1 - exp(-k * (t - t0))) ...
dugongs
04-single-attempt-2
Single attempt 2
scored
null
-3.1969
import pymc as pm import numpy as np def model(data): age = data['age'] length = data['length'] with pm.Model() as dugong_model: # Priors for the von Bertalanffy growth parameters # L_infinity: asymptotic length L_inf = pm.HalfNormal('L_inf', sigma=2) # k: grow...
dugongs
05-single-attempt-3
Single attempt 3
scored
null
-4.6876
import pymc as pm import numpy as np def model(data): ages = data['age'] lengths = data['length'] with pm.Model() as model: # Priors for Von Bertalanffy parameters # L_inf: asymptotic length. Max observed is ~2.74. # A HalfNormal with sigma=2.0 allows reasonable mass above 2.7...
dugongs
06-single-attempt-4
Single attempt 4
scored
null
-3.2267
import pymc as pm import numpy as np def model(data): age = data['age'] length = data['length'] with pm.Model() as dugong_model: # Priors for the von Bertalanffy-like growth model: L = L_max * (1 - exp(-k * age)) # L_max: Asymptotic maximum length # k: Growth rate coefficient ...
dugongs
07-loop-proposal-1
Loop proposal 1 (round 1)
scored
null
-4.9166
import pymc as pm import numpy as np def model(data): age = data['age'] length = data['length'] n_obs = len(age) with pm.Model() as model: # Create data container for age age_data = pm.Data('age', age, dims="obs_id") # Priors for von Bertalanffy growth parameters ...
dugongs
08-loop-proposal-2
Loop proposal 2 (round 1)
scored
null
-4.6634
import numpy as np import pymc as pm def model(data): """ von Bertalanffy growth model for dugong length as a function of age. """ age = data['age'] length = data['length'] with pm.Model() as dugong_model: # Data containers age_data = pm.Data("age", age, dims="obs_id") ...
dugongs
09-loop-proposal-3
Loop proposal 3 (round 2)
scored
null
-7.4306
import pymc as pm import numpy as np def model(data): """ Bayesian von Bertalanffy growth model with Log-Normal likelihood. This model addresses the critique that a simple Normal likelihood with constant variance may not capture the heteroscedasticity and skewness in dugong length data. By usi...
dugongs
10-loop-proposal-4
Loop proposal 4 (round 2)
scored
null
-4.5121
import pymc as pm import numpy as np def model(data): age = data['age'] length = data['length'] with pm.Model() as dugong_model: # Data containers age_data = pm.Data("age", age, dims="obs_id") # Priors for von Bertalanffy parameters L_inf = pm.HalfNormal("L_inf...
disease-spread
01-reference
Reference
scored
null
-45.6085
import pymc as pm def model(data): """Infected count against time: the exponential-approach curve and prior of BoxingGym's disease-spread environment, with a Binomial likelihood over a population of 50. """ with pm.Model() as result: t = pm.Data("t", data["Time"]) y = pm.Data("y", data...
disease-spread
02-floor-model
Floor model
scored
null
-262.1291
import pymc as pm def model(data): """Floor model: ignores time and fits one infection probability.""" with pm.Model() as result: y = pm.Data("y", data["Infected_Count"]) p = pm.Beta("p", alpha=1, beta=1) pm.Binomial("Infected_Count", n=50, p=p, observed=y) return result
disease-spread
03-single-attempt-1
Single attempt 1
scored
null
-59.9733
import pymc as pm import numpy as np def model(data): """ Construct a PyMC model for the death_process task. Parameters: data (dict): A dictionary containing 'Time' and 'Infected_Count' arrays. Returns: pm.Model: The PyMC model. """ times = np.array(data['Time']) infected_...
disease-spread
04-single-attempt-2
Single attempt 2
scored
null
-59.8279
import pymc as pm import numpy as np def model(data): """ Defines a PyMC model for predicting infected counts in a population of 50. Args: data (dict): A dictionary containing 'Time' and 'Infected_Count' arrays. Returns: pm.Model: The defined PyMC model. """ time = np.array(da...
disease-spread
05-single-attempt-3
Single attempt 3
scored
null
-60.0128
import pymc as pm import numpy as np def model(data): time = np.array(data['Time']) infected_counts = np.array(data['Infected_Count']) with pm.Model() as model: # Priors for the logistic curve parameters # beta: growth rate, should be positive beta = pm.Gamma('beta', alpha=2, b...
disease-spread
06-single-attempt-4
Single attempt 4
failed
failed at model build
null
import numpy as np import pymc as pm import theano.tensor as tt def model(data): """ Build a PyMC model for the death_process / infection spread problem. The data consists of Time and Infected_Count observations from a population of 50. We need to model the number of infected individuals as a fun...
disease-spread
07-loop-proposal-1
Loop proposal 1 (round 1)
scored
null
-59.9324
import numpy as np import pymc as pm def model(data): """ Logistic growth model for disease spread. Assumptions: - Disease spread follows logistic growth - Total population is 50 (carrying capacity) - Observed counts follow a Binomial distribution - Priors are weakly informative to al...
disease-spread
08-loop-proposal-2
Loop proposal 2 (round 1)
failed
failed at model build
null
import numpy as np import pymc as pm def model(data): time = data['Time'] infected = data['Infected_Count'] N = 50 # total population with pm.Model() as model: # Feature container for time time_data = pm.Data('Time', time, dims='obs_id') # Logistic growth paramet...
disease-spread
09-loop-proposal-3
Loop proposal 3 (round 2)
scored
null
-60.5719
import numpy as np import pymc as pm import pandas as pd def model(data): """ Logistic growth model for disease spread with Negative Binomial likelihood. Assumptions: - Disease spread follows logistic growth dynamics. - Total population is fixed at 50. - Observed counts are subject to over...
disease-spread
10-loop-proposal-4
Loop proposal 4 (round 2)
scored
null
-60.7518
import numpy as np import pymc as pm import pandas as pd def model(data): """ Logistic growth model for disease spread with Negative Binomial likelihood. Assumptions: - Disease spread follows a logistic growth mean trend. - Total population is 50 (carrying capacity). - Observed counts exhi...

SynthStats demonstrations

This dataset (SynthStats/synthstats-demonstrations, released under the MIT licence) holds the observations, programs, held-out predictions and predictive curves behind the two statistical modelling demonstrations on synthstats.org/demonstrations from the SynthStats project site. Both tasks come from BoxingGym, which can be thought of as a benchmark of simulated scientific environments: in dugong growth, the length of a dugong (length) is simulated from its age (age) with the environment's own growth curve, priors and noise, whereas in disease spread the response is the number of infected individuals (Infected_Count) at a given time (Time).

Each scored program is fitted to the 80 visible observations, then assessed by summing its log predictive densities at the other 20. Higher scores are better, but can be compared only within the same task. The comparisons below use a floor model, which predicts the same distribution at every input, and a reference program that uses the environment's data-generating form.

In the dugong task, the prompted language model Qwen3.6-35B-A3B wrote eight PyMC programs (PyMC is a Python library for probability models). On the 20 held-out observations of this one simulated dataset, three scored above the reference program's -4.6028: single attempt 2 (-3.1969), single attempt 4 (-3.2267) and loop proposal 4 (-4.5121). The floor model scored -14.0898.

For disease spread, none of its programs reached the reference (-45.6085), whereas all six of those that scored beat the floor model (-262.1291).

In each task the language model received a description in English together with 80 observations of one simulated dataset, the other 20 being held out for scoring, and the prompt also contained a table of the columns together with the summary statistics of the 80 visible rows.

As for the eight programs that it wrote per task, four are single attempts, while the other four come from a loop of two rounds, between which the language model, called again as a critic, reads the first round's fitted programs and their predictions, its comments going into the prompt for the last two.

For dugong growth, the reference program can be thought of as the environment's growth curve written in PyMC: three parameters with the environment's own priors, plus a fixed noise scale.

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 and receive a score.

Fitting

Setting Value
Fitting rows the 80 visible observations
Chains 1
Tuning iterations 200
Retained posterior draws 200
New observations simulated per draw and input 20
Predictions per input 4,000
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 and 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)
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_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), heldout_log_score, avg_heldout_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

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
Downloads last month
162