SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.15826 · 2024

Expert-elicitation method for non-parametric joint priors using normalizing flows

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 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 0 have no contract verdict; 7 failures of our instrument; 4 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/2411.15826.json · badge: /api/ran/2411.15826.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
florence-bockting/prior_elicitation canonical (classifier label)
classifier basis: census
7 ran · 4 no recorded run
FunctionStatusWhere it lives
calc_slope Ran
ran; our contract draft was wrong, not the code
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/convergence_diagnostics.py
code served (permissive licence) · get_code("85cf47bddde24356")
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 float64, ndim 0, 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 torch
import numpy as np
from scipy.stats import linregress

torch.manual_seed(0)

# Create a simple array-like object for 'res' parameter
# The function slices it with res[start:end] and passes to linregress
# linregress expects array-like Y values
res = np.array([1.0, 2.5, 4.0, 5.5, 7.0, 8.5, 10.0])

# Define start and end indices for slicing
start = 1
end = 6

ARGS = {
    "res": res,
    "start": start,
    "end": end
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
cor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/sensitivity_func.py
code served (permissive licence) · get_code("2300fc91c9cb5fee")
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 float64, ndim 0, 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

# Create a small sample data matrix
# Shape: (batch_size=5, num_features=4)
x = np.random.randn(5, 4)

# Create index pairs to select two columns
idx = [0, 1]

ARGS = {
    "idx": idx,
    "x": x,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
prep_sensitivity_res Ran
ran; our contract draft was wrong, not the code
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/independent_binomial_prior_checks.py
code served (permissive licence) · get_code("e921fa25b0c0703b")
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 DataFrame. 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 pandas as pd
import os
import tempfile
import pickle
import numpy as np
import torch

torch.manual_seed(0)

# Create a temporary directory structure that mimics the expected layout
temp_dir = tempfile.mkdtemp()

# Create the nested directory structure
for vary in ['vary_mu0', 'vary_sigma0', 'vary_mu1', 'vary_sigma1']:
    deep_prior_path = os.path.join(temp_dir, vary, 'deep_prior')
    os.makedirs(deep_prior_path, exist_ok=True)
    
    # Create sample files with naming pattern: {vary}_{mu0}_{sigma0}_{mu1}_{sigma1}
    for i in range(2):
        mu0_val = f"0.{i+1}"
        sigma0_val = f"0.{i+2}"
        mu1_val = f"0.{i+3}"
        sigma1_val = f"0.{i+4}"
        
        filename = f"{vary}_{mu0_val}_{sigma0_val}_{mu1_val}_{sigma1_val}"
        file_path = os.path.join(deep_prior_path, filename)
        os.makedirs(file_path, exist_ok=True)
        
        # Create expert subdirectory with elicited_statistics.pkl
        expert_path = os.path.join(file_path, 'expert')
        os.makedirs(expert_path, exist_ok=True)
        
        # Create dummy pickle data with the expected structure
        # custom_ypred should have shape [1, seq_len, 2] with numpy arrays
        dummy_data = {
            'custom_ypred': torch.randn(1, 5, 2)  # shape [1, 5, 2]
        }
        
        pkl_path = os.path.join(expert_path, 'elicited_statistics.pkl')
        with open(pkl_path, 'wb') as f:
            pickle.dump(dummy_data, f)

ARGS = {
    'path_sensitivity_res': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
prep_sim_res Ran
ran; our contract draft was wrong, not the code
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/preprocess_sim_res_norm.py
code served (permissive licence) · get_code("0061acdcde6352da")
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 os
import tempfile
import pandas as pd
import tensorflow as tf
import numpy as np

# Create a temporary directory structure with mock pickle files
temp_dir = tempfile.mkdtemp()

# Create subdirectories and pickle files for 2 simulation runs
for run_id in range(2):
    run_dir = os.path.join(temp_dir, f'run_{run_id}')
    os.makedirs(run_dir, exist_ok=True)
    
    # final_results.pkl with loss of length 1500
    final_results = {'loss': np.zeros(1500)}
    pd.to_pickle(final_results, os.path.join(run_dir, 'final_results.pkl'))
    
    # model_simulations.pkl with prior_samples
    # Shape: (1, 5, 3) - (batch, features, timesteps)
    prior_samples = np.random.randn(1, 5, 3).astype(np.float32)
    model_simulations = {'prior_samples': prior_samples}
    pd.to_pickle(model_simulations, os.path.join(run_dir, 'model_simulations.pkl'))
    
    # elicited_statistics.pkl with all required keys
    # Shapes: (1, 4) for quantiles, (1, 3) for correlation
    quantiles_gr1 = np.random.randn(1, 4).astype(np.float32)
    quantiles_gr2 = np.random.randn(1, 4).astype(np.float32)
    quantiles_gr3 = np.random.randn(1, 4).astype(np.float32)
    quantiles_logR2 = np.random.randn(1, 4).astype(np.float32)
    identity_correl = np.random.randn(1, 3).astype(np.float32)
    correlation = np.random.randn(1, 3).astype(np.float32)
    
    elicited_stats = {
        'quantiles_group1': quantiles_gr1,
        'quantiles_group2': quantiles_gr2,
        'quantiles_group3': quantiles_gr3,
        'quantiles_logR2': quantiles_logR2,
        'identity_correl': identity_correl,
        'correlation': correlation
    }
    pd.to_pickle(elicited_stats, os.path.join(run_dir, 'elicited_statistics.pkl'))

ARGS = {
    'path_sim': temp_dir,
    'scenario': 'correlated'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, tensorflow — 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
prep_sim_res_binom Ran
ran; our contract draft was wrong, not the code
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/preprocess_sim_res_binom.py
code served (permissive licence) · get_code("feca65a47f418679")
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 os
import tempfile
import shutil
import pandas as pd
import tensorflow as tf
import numpy as np

# Create temporary directory structure with mock pickle files
temp_dir = tempfile.mkdtemp()

# Create subdirectories with mock simulation results
for sim_idx in range(2):
    sim_subdir = os.path.join(temp_dir, f'sim_{sim_idx}')
    os.makedirs(sim_subdir, exist_ok=True)
    
    # Create final_results.pkl with required structure
    final_results = {
        'loss': [0.1] * 600,  # Must have length 600
        'hyperparameter': {
            'means': [np.array([0.1, 0.2, 0.3, 0.4]) for _ in range(5)],
            'stds': [np.array([0.05, 0.06, 0.07, 0.08]) for _ in range(5)]
        }
    }
    pd.to_pickle(final_results, os.path.join(sim_subdir, 'final_results.pkl'))
    
    # Create prior_samples.pkl (shape should work with [0, :, :])
    prior_samples = np.random.randn(3, 7, 9)  # [batch, feat1, feat2]
    pd.to_pickle(prior_samples, os.path.join(sim_subdir, 'prior_samples.pkl'))
    
    # Create elicited_statistics.pkl
    elicited_stats = {
        'custom_ypred': np.random.randn(2, 11),  # [batch, outcomes]
        'correlation': np.random.randn(3, 13)    # [batch, correlations]
    }
    pd.to_pickle(elicited_stats, os.path.join(sim_subdir, 'elicited_statistics.pkl'))

ARGS = {
    'path_sim': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, tensorflow — 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
run_model_averaging Ran
ran; our contract draft was wrong, not the code
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/binomial_model_averaging.py
code served (permissive licence) · get_code("94f4863a9c4d4a15")
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 os
import pandas as pd
import tensorflow as tf
import numpy as np
import tempfile
import shutil

# Create a temporary directory structure with mock data
temp_dir = tempfile.mkdtemp()

# Create 3 subdirectories with mock pickle files
num_models = 3
B = 2  # batch size
sim_from_prior = 5
num_param = 4

for model_idx in range(num_models):
    model_dir = os.path.join(temp_dir, f'model_{model_idx}')
    os.makedirs(model_dir, exist_ok=True)
    
    # Create mock final_results.pkl with loss data
    # Need at least 100 loss values for the [-100:] slice
    loss_data = tf.constant(np.random.randn(150).astype(np.float32))
    final_results = {'loss': [loss_data]}
    pd.to_pickle(final_results, os.path.join(model_dir, 'final_results.pkl'))
    
    # Create mock prior_samples.pkl
    # Shape should be (B * sim_from_prior, num_param) to match what function expects
    prior_samples = np.random.randn(B * sim_from_prior, num_param).astype(np.float32)
    pd.to_pickle(prior_samples, os.path.join(model_dir, 'prior_samples.pkl'))

# Define ARGS dictionary
ARGS = {
    'path': temp_dir,
    'B': B,
    'sim_from_prior': sim_from_prior,
    'num_param': num_param
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, tensorflow — 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
run_model_averaging Ran
ran; our contract draft was wrong, not the code
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/scenarios_normal_model_averaging.py
code served (permissive licence) · get_code("e0da45c960ef4675")
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 os
import pandas as pd
import tensorflow as tf
import numpy as np
import tempfile
import shutil

# Create a temporary directory structure with mock data
temp_dir = tempfile.mkdtemp()

# Parameters for the setup
B = 2  # batch size
sim_from_prior = 3  # number of simulations from prior
num_param = 4  # number of parameters

# Create subdirectories with mock pickle files
num_models = 2
for model_idx in range(num_models):
    model_dir = os.path.join(temp_dir, f"model_{model_idx}")
    os.makedirs(model_dir, exist_ok=True)
    
    # Create mock final_results.pkl with loss data
    # Need at least 100 losses for the [-100:] slicing
    mock_losses = [tf.constant(np.random.rand(), dtype=tf.float32) for _ in range(120)]
    final_results = {'loss': mock_losses}
    pd.to_pickle(final_results, os.path.join(model_dir, 'final_results.pkl'))
    
    # Create mock prior_samples.pkl
    # Shape should be (B * sim_from_prior, num_param)
    prior_samples = np.random.randn(B * sim_from_prior, num_param).astype(np.float32)
    pd.to_pickle(prior_samples, os.path.join(model_dir, 'prior_samples.pkl'))

ARGS = {
    'path': temp_dir,
    'B': B,
    'sim_from_prior': sim_from_prior,
    'num_param': num_param
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, tensorflow — 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
min_sec Not yet run
unverified (harvested, no recorded run)
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/compute_training_time.py
code served (permissive licence) · get_code("6edff208cbeaf12f")
How it ran

no invocation recorded.

plot_sensitivity_binom Not yet run
unverified (harvested, no recorded run)
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/independent_binomial_prior_checks.py
code served (permissive licence) · get_code("d35a98133eb0df14")
How it ran

no invocation recorded.

prep_sensitivity_res Not yet run
unverified (harvested, no recorded run)
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/correlated_normal_prior_checks.py
code served (permissive licence) · get_code("d56fb190d5111e4e")
How it ran

no invocation recorded.

prep_sensitivity_res Not yet run
unverified (harvested, no recorded run)
florence-bockting/prior_elicitation/manuscript_non_parametric_joint_prior/functions/independent_normal_prior_checks.py
code served (permissive licence) · get_code("4af02bda89b8f1f4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 11 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

We propose an expert-elicitation method for learning non-parametric joint prior distributions using normalizing flows. Normalizing flows are a class of generative models that enable exact, single-step density evaluation and can capture complex density functions through specialized deep neural networks. Building on our previously introduced simulation-based framework, we adapt and extend the methodology to accommodate non-parametric joint priors. Our framework thus supports the development of elicitation methods for learning both parametric and non-parametric priors, as well as independent or joint priors for model parameters. To evaluate the performance of the proposed method, we perform four simulation studies and present an evaluation pipeline that incorporates diagnostics and additional evaluation tools to support decision-making at each stage of the elicitation process.

For agents

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

get_harvested_code_for_paper("2411.15826")
get_code_for_paper("2411.15826")
have("2411.15826")

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

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

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

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

Connect an agent — have() is free.