SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1810.02561 · 2018

GPdoemd: a Python package for design of experiments for model discrimination

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 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/1810.02561.json · badge: /api/ran/1810.02561.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
cog-imperial/GPdoemd canonical (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
FunctionStatusWhere it lives
BF Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cog-imperial/GPdoemd/GPdoemd/design_criteria.py
code served (permissive licence) · get_code("56b4810dd86d6541")
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) and returned ndarray, ndim 1, dtype family float, shape (2,) 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

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

# Parameters for BF function
# mu: shape (n, M, E) or (n, M) - means for n samples, M models, E outputs
# s2: shape (n, M, E, E) - covariances for n samples, M models, E x E matrices
# noise_var: (E, E) matrix or scalar or 1D array - noise covariance
# pps: (M,) array - model probabilities (optional)

n = 2  # batch size
M = 3  # number of models
E = 4  # number of outputs

# mu: (n, M, E) - means
mu = np.random.randn(n, M, E)

# s2: (n, M, E, E) - covariances (must be positive semi-definite)
# Create positive semi-definite matrices
s2 = np.zeros((n, M, E, E))
for i in range(n):
    for j in range(M):
        A = np.random.randn(E, E)
        s2[i, j] = A @ A.T  # Ensures positive semi-definite

# noise_var: (E, E) - noise covariance matrix (positive semi-definite)
A_noise = np.random.randn(E, E)
noise_var = A_noise @ A_noise.T

# pps: (M,) - model probabilities (non-negative, will be normalized)
pps = np.array([1.0, 2.0, 1.5])

ARGS = {
    "mu": mu,
    "s2": s2,
    "noise_var": noise_var,
    "pps": pps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 1, dtype family float, shape (2,) — shape (2,) 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
BH Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cog-imperial/GPdoemd/GPdoemd/design_criteria.py
code served (permissive licence) · get_code("06bed31f8a66bc87")
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) and returned ndarray, ndim 1, dtype family float, shape (2,) 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

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

# Parameters for BH function
# mu: shape (n, M, E) or (n, M) - means for n samples, M models, E outputs
# s2: shape (n, M, E, E) - covariances for n samples, M models, E x E matrices
# noise_var: (E, E) matrix or scalar or 1D array - noise covariance
# pps: (M,) array - model probabilities

n = 2  # number of samples
M = 3  # number of models
E = 4  # number of outputs

# Create mu: (n, M, E) - means
mu = np.random.randn(n, M, E)

# Create s2: (n, M, E, E) - covariances (must be positive definite)
s2 = np.zeros((n, M, E, E))
for i in range(n):
    for j in range(M):
        # Create a random positive definite matrix
        A = np.random.randn(E, E)
        s2[i, j] = A @ A.T + np.eye(E)

# Create noise_var: (E, E) - noise covariance matrix (positive definite)
noise_A = np.random.randn(E, E)
noise_var = noise_A @ noise_A.T + np.eye(E)

# Create pps: (M,) - model probabilities (non-negative, will be normalized)
pps = np.array([1.0, 2.0, 1.5])

ARGS = {
    "mu": mu,
    "s2": s2,
    "noise_var": noise_var,
    "pps": pps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 1, dtype family float, shape (2,) — shape (2,) 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
HR Ran
ran, honoured the contract we drafted
cog-imperial/GPdoemd/GPdoemd/design_criteria.py
code served (permissive licence) · get_code("abfab1a108b33739")
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) and returned ndarray, ndim 1, dtype family float, shape (2,) 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

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

# Construct arguments for HR function
# HR(mu, s2, noise_var=None, pps=None)

# mu: shape (n, M, E) or (n, M) - will be expanded to (n, M, E)
# Let's use (n=2, M=3, E=4) - batch of 2, 3 models, 4 dimensions
n, M, E = 2, 3, 4
mu = np.random.randn(n, M, E)

# s2: covariance matrices, will be reshaped to (n, M, E, E)
# Input shape should be compatible with reshape to (n, M, E, E)
s2 = np.random.randn(n, M, E, E)
# Make it positive semi-definite by using s2 @ s2.T for each (E, E) block
s2_reshaped = np.zeros((n, M, E, E))
for i in range(n):
    for j in range(M):
        A = np.random.randn(E, E)
        s2_reshaped[i, j] = A @ A.T
s2 = s2_reshaped.reshape(n * M * E * E)

# noise_var: optional, can be None, scalar, 1D array, or 2D array
# We'll pass None to use default
noise_var = None

# pps: optional model probabilities, shape (M,)
# We'll pass None to use uniform
pps = None

ARGS = {
    "mu": mu,
    "s2": s2,
    "noise_var": noise_var,
    "pps": pps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 1, dtype family float, shape (2,) — shape (2,) 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
taylor_first_order Ran
ran; our contract draft was wrong, not the code
cog-imperial/GPdoemd/GPdoemd/marginal/taylor_first_order.py
code served (permissive licence) · get_code("c9f7a3daef5af641")
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) 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

class MockModel:
    def __init__(self):
        self.num_outputs = 3  # E
        self.dim_p = 4  # D
        self.Sigma = np.eye(4) * 0.1  # D x D covariance matrix
    
    def predict(self, xnew):
        N = len(xnew)
        E = self.num_outputs
        M = np.random.randn(N, E)
        s2 = np.abs(np.random.randn(N, E)) + 0.1
        return M, s2
    
    def d_mu_d_p(self, e, xnew):
        N = len(xnew)
        D = self.dim_p
        return np.random.randn(N, D)

model = MockModel()
xnew = np.random.randn(2, 5)  # N=2 samples, 5 input features

ARGS = {
    "model": model,
    "xnew": xnew
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — 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

Also present in other papers' code

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

Model discrimination identifies a mathematical model that usefully explains and predicts a given system's behaviour. Researchers will often have several models, i.e. hypotheses, about an underlying system mechanism, but insufficient experimental data to discriminate between the models, i.e. discard inaccurate models. Given rival mathematical models and an initial experimental data set, optimal design of experiments suggests maximally informative experimental observations that maximise a design criterion weighted by prediction uncertainty. The model uncertainty requires gradients, which may not be readily available for black-box models. This paper (i) proposes a new design criterion using the Jensen-Rényi divergence, and (ii) develops a novel method replacing black-box models with Gaussian process surrogates. Using the surrogates, we marginalise out the model parameters with approximate inference. Results show these contributions working well for both classical and new test instances. We also (iii) introduce and discuss GPdoemd, the open-source implementation of the Gaussian process surrogate method.

For agents

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

get_harvested_code_for_paper("1810.02561")
get_code_for_paper("1810.02561")
have("1810.02561")

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

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

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

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

Connect an agent — have() is free.