SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.03279 · 2025

Posterior SBC: Simulation-Based Calibration Checking Conditional on Data

arXiv · PDF · Open in the Atlas

Code that ran

21 of 21 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 21 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2502.03279.json · badge: /api/ran/2502.03279.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
TeemuSailynoja/posterior-sbc canonical (classifier label)
classifier basis not recorded on the link
21 ran · 0 no recorded run
FunctionStatusWhere it lives
diffusion_condition Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m1a.py
code served (permissive licence) · get_code("27a49aa79a6229ae")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Define parameters for diffusion_condition
params = np.array([
    0.5,      # drift: drift rate
    1.0,      # boundary: decision boundary
    0.5,      # beta: initial bias
    0.1,      # mu_tau_e: mean of tau_e
    0.05,     # tau_m: motor time
    0.1,      # sigma: standard deviation for z
    0.02      # varsigma: standard deviation for tau_e_trial
])

n_trials = 5  # small number of trials for testing

ARGS = {
    "params": params,
    "n_trials": n_trials
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_condition Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m2.py
code served (permissive licence) · get_code("75c33850f4acc6d9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import njit

np.random.seed(0)

# Parameters for the diffusion_condition function
params = np.array([
    0.5,      # drift
    1.0,      # boundary
    0.5,      # beta
    0.1,      # mu_tau_e
    0.05,     # tau_m
    0.2,      # sigma
    0.03,     # varsigma
    0.8       # gamma
], dtype=np.float64)

n_trials = 10

ARGS = {
    "params": params,
    "n_trials": n_trials
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_condition Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m3.py
code served (permissive licence) · get_code("3a220434109e1e90")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import njit

# Set random seed for reproducibility
np.random.seed(42)

# Define the arguments for diffusion_condition
# params: tuple of 8 parameters (drift, boundary, beta, mu_tau_e, tau_m, sigma, varsigma, theta)
# n_trials: number of trials to simulate

params = (
    0.5,      # drift
    1.0,      # boundary
    0.3,      # beta
    0.1,      # mu_tau_e
    0.05,     # tau_m
    0.2,      # sigma
    0.15,     # varsigma
    0.1       # theta
)

n_trials = 10

ARGS = {
    "params": params,
    "n_trials": n_trials
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_condition Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m4b.py
code served (permissive licence) · get_code("d780adc83c044cf1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import njit

# Set random seed for reproducibility
np.random.seed(42)

# Define the arguments for diffusion_condition
params = np.array([
    0.5,      # drift
    1.0,       # boundary
    0.5,       # beta
    0.1,       # mu_tau_e
    0.05,      # tau_m
    0.02,      # sigma_e
    0.03,      # varsigma
    0.1        # theta
], dtype=np.float64)

n_trials = 10

ARGS = {
    "params": params,
    "n_trials": n_trials
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_condition Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m5.py
code served (permissive licence) · get_code("002b3282e955d9b1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import njit

@njit
def diffusion_trial(drift, boundary, beta, mu_tau_e, tau_m, sigma, varsigma, a_slope, dc=1.0, dt=0.001):
    """Simulates a trial from the diffusion model."""
    n_steps = 0.0
    evidence = boundary * beta
    while evidence > a_slope * n_steps * dt and evidence < boundary - a_slope * n_steps * dt:
        evidence += drift * dt + np.sqrt(dt) * dc * np.random.normal()
        n_steps += 1.0
    rt = n_steps * dt
    tau_e_trial = np.random.normal(mu_tau_e, varsigma)
    z = np.random.normal(tau_e_trial, sigma)
    if evidence >= boundary - a_slope * n_steps * dt:
        choicert = tau_e_trial + rt + tau_m
    else:
        choicert = -tau_e_trial - rt - tau_m
    return (choicert, z)

@njit
def diffusion_condition(params, n_trials):
    """Simulates a diffusion process over an entire condition."""
    drift, boundary, beta, mu_tau_e, tau_m, sigma, varsigma, a_slope = params
    choicert = np.empty(n_trials)
    z = np.empty(n_trials)
    for i in range(n_trials):
        choicert[i], z[i] = diffusion_trial(drift, boundary, beta, mu_tau_e, tau_m, sigma, varsigma, a_slope)
    return (choicert, z)

np.random.seed(42)

params = np.array([
    0.5,      # drift
    1.0,       # boundary
    0.5,       # beta
    0.1,       # mu_tau_e
    0.05,      # tau_m
    0.08,      # sigma
    0.02,      # varsigma
    0.1        # a_slope
], dtype=np.float64)

n_trials = 10

ARGS = {
    "params": params,
    "n_trials": n_trials
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_condition Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m6.py
code served (permissive licence) · get_code("3dd3c05c5687670d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import njit

# Set random seed for reproducibility
np.random.seed(42)

# Define parameters for diffusion_condition
drift = 0.5  # drift rate
boundary = 1.0  # decision boundary
beta = 0.5  # starting point bias
mu_tau_e = 0.1  # mean encoding time
tau_m = 0.05  # motor time
sigma = 0.1  # noise in z
varsigma = 0.02  # variability in tau_e
lam = 0.5  # time constant for boundary collapse
n_trials = 10  # number of trials to simulate

# Package parameters as required by diffusion_condition
params = np.array([drift, boundary, beta, mu_tau_e, tau_m, sigma, varsigma, lam], dtype=np.float64)

ARGS = {
    "params": params,
    "n_trials": n_trials
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_trial Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m1a.py
code served (permissive licence) · get_code("86c7960cbbe33886")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import njit

# Set random seed for reproducibility
np.random.seed(0)

ARGS = {
    "drift": 0.5,
    "boundary": 1.0,
    "beta": 0.3,
    "mu_tau_e": 0.1,
    "tau_m": 0.05,
    "sigma": 0.2,
    "varsigma": 0.15,
    "dc": 1.0,
    "dt": 0.005,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_trial Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m2.py
code served (permissive licence) · get_code("3659dda6dc593e9f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import njit

np.random.seed(42)

ARGS = {
    'drift': 0.5,
    'boundary': 1.0,
    'beta': 0.5,
    'mu_tau_e': 0.1,
    'tau_m': 0.05,
    'sigma': 0.2,
    'varsigma': 0.15,
    'gamma': 0.8,
    'dc': 1.0,
    'dt': 0.001
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_trial Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m3.py
code served (permissive licence) · get_code("39016adfa0fce9ef")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import njit

np.random.seed(0)

ARGS = {
    'drift': 0.5,
    'boundary': 1.0,
    'beta': 0.5,
    'mu_tau_e': 0.1,
    'tau_m': 0.05,
    'sigma': 0.2,
    'varsigma': 0.15,
    'theta': 0.1,
    'dc': 1.0,
    'dt': 0.005
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_trial Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m4b.py
code served (permissive licence) · get_code("c3a9fafe878b5391")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "drift": 0.5,
    "boundary": 1.0,
    "beta": 0.5,
    "mu_tau_e": 0.1,
    "tau_m": 0.05,
    "sigma_e": 0.02,
    "varsigma": 0.03,
    "theta": 0.1,
    "dc": 1.0,
    "dt": 0.005,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_trial Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m5.py
code served (permissive licence) · get_code("180eea7c56b23b9e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import njit

np.random.seed(0)

ARGS = {
    'drift': 0.5,
    'boundary': 1.0,
    'beta': 0.3,
    'mu_tau_e': 0.1,
    'tau_m': 0.05,
    'sigma': 0.15,
    'varsigma': 0.02,
    'a_slope': 0.01,
    'dc': 1.0,
    'dt': 0.001
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
diffusion_trial Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m6.py
code served (permissive licence) · get_code("2eb3d1d0b1cb467b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "drift": 0.5,
    "boundary": 1.0,
    "beta": 0.5,
    "mu_tau_e": 0.1,
    "tau_m": 0.05,
    "sigma": 0.02,
    "varsigma": 0.01,
    "lam": 0.3,
    "dc": 1.0,
    "dt": 0.005,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_args Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/argparser.py
code served (permissive licence) · get_code("a075c635ebc7e7c0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Namespace. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse
import numpy as np

ARGS = {
    'args': ['--model', 'm1a', '--checkpoint_prefix', 'test_checkpoint', '--nobs_fun', 'uniform']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
plot_true_vs_ci Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/plot_utils.py
code served (permissive licence) · get_code("0cecb345e5cb172e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Figure. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import matplotlib.pyplot as plt

# Create small test data
np.random.seed(0)

# true: shape (n_samples, n_features)
# Let's use 5 samples and 3 features
n_samples = 5
n_features = 3

true = np.random.randn(n_samples, n_features) * 0.5 + 0.5

# posterior: shape (n_samples, n_draws, n_features)
# Multiple draws from posterior distribution
n_draws = 100
posterior = np.random.randn(n_samples, n_draws, n_features) * 0.3 + true[:, np.newaxis, :]

# names: list of feature names
names = ['Feature 1', 'Feature 2', 'Feature 3']

# point_colors: list of colors (one per feature)
point_colors = ['#012F47', '#FF5733', '#33FF57']

# limits: tuple of (min, max) for axis limits
limits = (0.0, 1.5)

# line_color: color for confidence interval lines
line_color = '#AAAAAA'

ARGS = {
    'true': true,
    'posterior': posterior,
    'names': names,
    'limits': limits,
    'point_colors': point_colors,
    'line_color': line_color
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, seaborn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
posterior_sbc Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/posterior_sbc.py
code served (permissive licence) · get_code("2b8c0a5bf2dbea5f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal inference network
class MinimalInferenceNet(nn.Module):
    def __init__(self, latent_dim=4):
        super().__init__()
        self.latent_dim = latent_dim
        self.fc = nn.Linear(10, latent_dim)
    
    def forward(self, x):
        return self.fc(x)

# Create a minimal amortizer
class MinimalAmortizer(nn.Module):
    def __init__(self, latent_dim=4):
        super().__init__()
        self.inference_net = MinimalInferenceNet(latent_dim=latent_dim)
    
    def sample(self, configured_data, n_samples=200):
        # Return shape (n_samples, latent_dim)
        batch_size = n_samples
        return np.random.randn(batch_size, self.inference_net.latent_dim).astype(np.float32)

# Create a minimal configurator
def minimal_configurator(data_dict):
    # Just return a dummy configured tensor
    sim_data = data_dict['sim_data']
    batch_size = sim_data.shape[0]
    return np.random.randn(batch_size, 20).astype(np.float32)

# Create a minimal trainer
class MinimalTrainer:
    def __init__(self):
        self.amortizer = MinimalAmortizer(latent_dim=4)
        self.configurator = minimal_configurator

# Create a minimal posterior predictive simulator
def minimal_ppred_simulator(posterior_samples, n_obs=2):
    # posterior_samples shape: (num_ppred_samples, parameter_dim)
    num_ppred_samples = posterior_samples.shape[0]
    # Return shape (num_ppred_samples, n_obs, data_dim)
    return np.random.randn(num_ppred_samples, n_obs, 3).astype(np.float32)

# Construct ARGS
ARGS = {
    'y_obs': np.random.randn(2, 3).astype(np.float32),  # (num_obs=2, data_dim=3)
    'trainer': MinimalTrainer(),
    'ppred_simulator': minimal_ppred_simulator,
    'num_ppred_samples': 200,
    'num_posterior_samples': 500
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prior Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m1a.py
code served (permissive licence) · get_code("c24fa813e47fba9c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 7) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

def prior(batch_size):
    """
    Samples from the prior 'batch_size' times.
    ----------

    Arguments:
    batch_size : int -- the number of samples to draw from the prior
    ----------

    Output:
    theta : np.ndarray of shape (batch_size, theta_dim) -- the samples batch of parameters
    """
    n_parameters = 7
    p_samples = np.random.uniform(low=(-3.0, 0.5, 0.1, 0.05, 0.06, 0.0, 0.0), high=(3.0, 2.0, 0.9, 0.6, 0.8, 0.3, 0.3), size=(batch_size, n_parameters))
    return p_samples.astype(np.float32)

ARGS = {
    "batch_size": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 7) — shape (2, 7) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prior Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m2.py
code served (permissive licence) · get_code("9ae60a13e4fdf4ea")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (5, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "batch_size": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 8) — shape (5, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prior Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m3.py
code served (permissive licence) · get_code("201181c44dcad9f7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (5, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "batch_size": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 8) — shape (5, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prior Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m4b.py
code served (permissive licence) · get_code("9d675608202091ce")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (5, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "batch_size": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 8) — shape (5, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prior Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m5.py
code served (permissive licence) · get_code("0d0b88f068b789ac")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# The function 'prior' takes a single parameter: batch_size
# It samples from a prior distribution and returns an array of shape (batch_size, 8)

ARGS = {
    "batch_size": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float — no output shape is stated: observe_signature.py could not observe it (no_result)
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prior Ran
ran on a synthesized input
TeemuSailynoja/posterior-sbc/abi/src/ddm/m6.py
code served (permissive licence) · get_code("0c49845768e141fd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "batch_size": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 8) — shape (2, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 21 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Simulation-based calibration checking (SBC) refers to the validation of an inference algorithm and model implementation through repeated inference on data simulated from a generative model. In the original and commonly used approach, the generative model uses parameters drawn from the prior, and thus the approach is testing whether the inference works for simulated data generated with parameter values plausible under that prior. This approach is natural and desirable when we want to test whether the inference works for a wide range of datasets we might observe. However, after observing data, we are interested in answering whether the inference works conditional on that particular data. In this paper, we propose posterior SBC and demonstrate how it can be used to validate the inference conditionally on observed data. We illustrate the utility of posterior SBC in three case studies: (1) A simple multilevel model; (2) a model that is governed by differential equations; and (3) a joint integrative neuroscience model which is approximated via amortized Bayesian inference with neural networks.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2502.03279")
get_code_for_paper("2502.03279")
have("2502.03279")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2502.03279.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2502.03279.svg)](https://syntology.ai/paper/2502.03279)

Connect an agent — have() is free.