SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1910.12252 · 2019

Kernel Stein Tests for Multiple Model Comparison

arXiv · PDF · Open in the Atlas

Code that ran

18 of 18 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 16 have no contract verdict; 1 failure 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/1910.12252.json · badge: /api/ran/1910.12252.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
jenninglim/model-comparison-test canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
jenninglim/multiscale-features community (classifier label)
classifier basis not recorded on the link
8 ran · 0 no recorded run
FunctionStatusWhere it lives
aic Ran
ran on a synthesized input
jenninglim/multiscale-features/mskernel/model.py
code served (permissive licence) · get_code("1b3a3d7b7d6814fc")
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 small sample data
np.random.seed(0)
true_values = np.array([1.0, 2.0, 3.0, 4.0])
predicted_values = np.array([1.1, 2.1, 2.9, 4.2])

# Calculate SSE using the provided function
def sse(true, predicted):
    assert true.shape == predicted.shape
    return np.sum(np.square(true - predicted))

sse_value = sse(true_values, predicted_values)

# Define parameters for aic function
n_samples = 100
predictors = 5

ARGS = {
    'sse': sse_value,
    'n_samples': n_samples,
    'predictors': predictors
}
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
bh Ran
ran on a synthesized input
jenninglim/multiscale-features/mskernel/fdr.py
code served (permissive licence) · get_code("42e85116f7e428e7")
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 list, 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

# Benjamini-Hochberg procedure takes p-values and alpha threshold
# It needs:
# - pvals: array-like of p-values
# - alpha: float threshold for FDR control

np.random.seed(0)

# Create a small array of p-values
pvals = np.array([0.001, 0.05, 0.1, 0.2, 0.5, 0.8])

# Set alpha threshold
alpha = 0.05

ARGS = {
    "pvals": pvals,
    "alpha": alpha,
}
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 list, ndim 1, dtype family float — a list 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
calculate_threshold Ran
ran on a synthesized input
jenninglim/model-comparison-test/reltest/psi.py
code served (permissive licence) · get_code("8054f5435b4792ef")
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

np.random.seed(0)

# Analyze function requirements:
# - z: 1D array (used in dot products)
# - A: 2D array (used in dot products, indexing with [0], division operations)
# - b: 1D array (used in subtraction)
# - eta: 1D array (used in dot products)
# - cov: 2D array (covariance matrix, used in dot products)

# Create small, distinct dimensions to avoid ambiguity
# Let's use: z, eta, b as vectors of size 4
# A as 3x4 matrix (3 constraints, 4 variables)
# cov as 4x4 covariance matrix

dim_vars = 4  # number of variables
dim_constraints = 3  # number of constraints

z = np.random.randn(dim_vars)
eta = np.random.randn(dim_vars)
b = np.random.randn(dim_constraints)
A = np.random.randn(dim_constraints, dim_vars)
cov = np.eye(dim_vars) + 0.1 * np.random.randn(dim_vars, dim_vars)
cov = (cov + cov.T) / 2  # make it symmetric (valid covariance)

ARGS = {
    "z": z,
    "A": A,
    "b": b,
    "eta": eta,
    "cov": cov
}
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 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
compute_params Ran
ran on a synthesized input
jenninglim/model-comparison-test/reltest/mctest.py
code served (permissive licence) · get_code("67c8ee8affdf9826")
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

class MockDistance:
    """Mock distance object that implements the methods called in compute_params"""
    def __init__(self):
        self.n_est = 2
    
    def compute(self, model, ref):
        """Returns a scalar distance value"""
        return np.random.random()
    
    def n_estimates(self, n_samples):
        """Returns a scaling factor based on number of samples"""
        return self.n_est
    
    def compute_covariance(self, models, ref):
        """Returns a covariance matrix"""
        l = len(models)
        return np.random.random((l, l))

class MockModel:
    """Mock model object"""
    def __init__(self):
        self.weight = np.random.random((4, 3))

# Create test data
models = [MockModel(), MockModel(), MockModel()]
ref = np.random.random((5, 4))  # 5 samples, 4 dimensions
dist = MockDistance()

ARGS = {
    "models": models,
    "ref": ref,
    "dist": dist,
    "compute_mu_var": True
}
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 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
dist2_matrix Ran
ran on a synthesized input
jenninglim/model-comparison-test/reltest/util.py
code served (permissive licence) · get_code("fa552989f21d8f4a")
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, 3) 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

# Create small numpy arrays with distinct dimensions
X = np.random.randn(2, 4).astype(np.float32)
Y = np.random.randn(3, 4).astype(np.float32)

ARGS = {
    "X": X,
    "Y": Y,
}
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, 3) — shape (2, 3) 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
dist_matrix Ran
ran, honoured the contract we drafted
jenninglim/model-comparison-test/reltest/util.py
code served (permissive licence) · get_code("b682b7ee51bdc47b")
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, 3) 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

# Create two small numpy arrays for the distance matrix computation
# X: 2 samples, 4 dimensions
# Y: 3 samples, 4 dimensions
X = np.random.randn(2, 4).astype(np.float64)
Y = np.random.randn(3, 4).astype(np.float64)

ARGS = {
    "X": X,
    "Y": Y,
}
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, 3) — shape (2, 3) 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
fisher Ran
ran on a synthesized input
jenninglim/multiscale-features/mskernel/fdr.py
code served (permissive licence) · get_code("b2b3e0b6a4eae24c")
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 bool, ndim 0, dtype family float, shape () 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
from scipy.stats import chi2

def fisher(pvals, alpha):
    k = len(pvals)
    acc = 0
    for pval in pvals:
        acc = acc - 2 * np.log(pval)
    return 1 - chi2.cdf(acc, 2 * k) < alpha

# Setup: Create valid p-values and alpha threshold
# p-values must be in (0, 1] range for log to work
pvals = [0.01, 0.05, 0.1, 0.02]  # Small valid p-values
alpha = 0.05  # Typical significance level

ARGS = {
    "pvals": pvals,
    "alpha": alpha
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
get_cross_covariance Ran
ran on a synthesized input
jenninglim/model-comparison-test/reltest/mmd.py
code served (permissive licence) · get_code("7cf1aa785fe7f442")
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

class SimpleKernel:
    """A minimal kernel object that implements eval method"""
    def eval(self, X, Y):
        """Compute a simple RBF-like kernel"""
        # Return a kernel matrix of shape (X.shape[0], Y.shape[0])
        n_x = X.shape[0]
        n_y = Y.shape[0]
        # Simple Euclidean distance based kernel
        K = np.zeros((n_x, n_y))
        for i in range(n_x):
            for j in range(n_y):
                dist_sq = np.sum((X[i] - Y[j]) ** 2)
                K[i, j] = np.exp(-dist_sq)
        return K

np.random.seed(0)

# Create sample data with distinct sizes
X = np.random.randn(5, 4)  # nx=5, d=4
Y = np.random.randn(6, 4)  # ny=6, d=4
Z = np.random.randn(7, 4)  # nz=7, d=4

# Create kernel object
k = SimpleKernel()

ARGS = {
    "X": X,
    "Y": Y,
    "Z": Z,
    "k": k,
}
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
hsic Ran
ran on a synthesized input
jenninglim/multiscale-features/mskernel/hsic.py
code served (permissive licence) · get_code("a901cbc0db6e924f")
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

class SimpleKernel:
    """A simple kernel that computes Euclidean distance-based kernel"""
    def eval(self, X, Y):
        """
        Compute kernel matrix between X and Y.
        Returns a square matrix of shape (n, n) when X and Y have same number of rows.
        """
        # Simple RBF-like kernel: exp(-||x-y||^2)
        n = X.shape[0]
        m = Y.shape[0]
        K = np.zeros((n, m))
        for i in range(n):
            for j in range(m):
                diff = X[i] - Y[j]
                K[i, j] = np.exp(-np.sum(diff ** 2))
        return K

# Create small sample data
np.random.seed(0)
X = np.random.randn(2, 4)  # 2 samples, 4 dimensions
Y = np.random.randn(2, 3)  # 2 samples, 3 dimensions

# Create kernel instances
k = SimpleKernel()  # kernel for X
l = SimpleKernel()  # kernel for Y

ARGS = {
    "X": X,
    "Y": Y,
    "k": k,
    "l": l,
}
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
meddistance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jenninglim/model-comparison-test/reltest/util.py
code served (permissive licence) · get_code("e4ac96914f0f8feb")
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

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

# Create a small sample dataset: n=5 points in d=3 dimensions
X = np.random.randn(5, 3).astype(np.float64)

# Define arguments for meddistance function
ARGS = {
    "X": X,
    "subsample": None,
    "mean_on_fail": True,
}
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
params_block Ran
ran on a synthesized input
jenninglim/multiscale-features/experiments/exp1c.py
code served (permissive licence) · get_code("accccac21ec9d78e")
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 int, ndim 0, dtype family int, shape () 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 torch

def params_block(n):
    return 5

ARGS = {
    'n': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
psi_inf Ran
ran on a synthesized input
jenninglim/model-comparison-test/reltest/psi.py
code served (permissive licence) · get_code("639648c5b9d04fb2")
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 scipy.stats import truncnorm

np.random.seed(0)

# Parameters for psi_inf function
# A: matrix used in calculate_threshold, shape (m, n)
A = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0],
    [9.0, 10.0, 11.0, 12.0]
])

# b: vector used in calculate_threshold, shape (m,)
b = np.array([1.5, 2.5, 3.5])

# eta: vector used for dot products, shape (n,)
eta = np.array([0.1, 0.2, 0.3, 0.4])

# mu: mean vector, shape (n,)
mu = np.array([0.0, 0.0, 0.0, 0.0])

# cov: covariance matrix, shape (n, n)
cov = np.array([
    [1.0, 0.1, 0.0, 0.0],
    [0.1, 1.0, 0.1, 0.0],
    [0.0, 0.1, 1.0, 0.1],
    [0.0, 0.0, 0.1, 1.0]
])

# z: vector used in calculate_threshold, shape (n,)
z = np.array([0.5, 0.5, 0.5, 0.5])

ARGS = {
    'A': A,
    'b': b,
    'eta': eta,
    'mu': mu,
    'cov': cov,
    'z': z
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
region Ran
ran on a synthesized input
jenninglim/multiscale-features/mskernel/featsel.py
code served (permissive licence) · get_code("2b1235e0aab28903")
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

# Construct a small numpy array for y
# The function accesses y[:, index] and checks y.shape[0]
# We'll create a 2D array with shape (batch_size, features)
y = np.array([
    [1.5, -0.5, 2.0, 0.3],
    [-1.2, 0.8, -0.1, 1.1],
    [0.2, -2.5, 0.5, -0.8],
    [0.0, 1.5, -1.0, 2.2]
], dtype=np.float32)

# scaling - not used in function body, but required parameter
scaling = 1.0

# index - used to index into second dimension of y
index = 1

# k - not used in function body, but required parameter
k = 5

ARGS = {
    "y": y,
    "scaling": scaling,
    "index": index,
    "k": k
}
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
rot2d_cov Ran
ran on a synthesized input
jenninglim/model-comparison-test/reproduce-results/ex_models.py
code served (permissive licence) · get_code("dd44c79eec42dde6")
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, 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 autograd.numpy as np
import math

def rot2d_matrix(angle):
    r = np.array([[math.cos(angle), -math.sin(angle)], [math.sin(angle), math.cos(angle)]])
    return r

def rot2d_cov(angle, cov):
    R = rot2d_matrix(angle)
    return np.dot(np.dot(R, cov), R.T)

# Construct valid arguments
angle_value = np.pi / 4  # 45 degrees in radians
cov_matrix = np.array([[2.0, 0.5], [0.5, 1.5]])  # 2x2 covariance matrix

ARGS = {
    "angle": angle_value,
    "cov": cov_matrix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
autograd — 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, 2) — shape (2, 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
rot2d_matrix Ran
ran on a synthesized input
jenninglim/model-comparison-test/reproduce-results/ex_models.py
code served (permissive licence) · get_code("59552ad60dbaa016")
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, 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 autograd.numpy as np
import math

def rot2d_matrix(angle):
    r = np.array([[math.cos(angle), -math.sin(angle)], [math.sin(angle), math.cos(angle)]])
    return r

ARGS = {
    "angle": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
autograd — 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, 2) — shape (2, 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
select Ran
ran on a synthesized input
jenninglim/multiscale-features/mskernel/featsel.py
code served (permissive licence) · get_code("6af490234c52e764")
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

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

# Create small sample data for the function
# x: n_bootstrap x n_dim
n_bootstrap = 2
n_dim = 4
x = np.random.randn(n_bootstrap, n_dim)

# scaling: not used in function body, but required parameter
scaling = 1.0

# index: array of indices to check membership against
index = np.array([0, 2])

# k: number of largest values to select
k = 2

ARGS = {
    "x": x,
    "scaling": scaling,
    "index": index,
    "k": k
}
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
selection Ran
ran on a synthesized input
jenninglim/model-comparison-test/reltest/psi.py
code served (permissive licence) · get_code("8d68f0dd8c6c203b")
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

np.random.seed(0)

# Create a small feature vector Z with normal distribution
# The function sorts this vector and selects the minimum element
# N should be at least 2 for the function to work properly
Z = np.random.randn(5)

ARGS = {
    "Z": Z
}
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 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
sse Ran
ran on a synthesized input
jenninglim/multiscale-features/mskernel/model.py
code served (permissive licence) · get_code("8e56a9a8c3f6bdf3")
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

# The function sse compares two numpy arrays of the same shape
# and computes the sum of squared errors.

# Create two small numpy arrays with distinct shapes to verify correctness
true = np.array([[1.0, 2.0, 3.0, 4.0],
                 [5.0, 6.0, 7.0, 8.0]])

predicted = np.array([[1.1, 2.1, 2.9, 4.2],
                      [4.9, 6.1, 7.0, 7.8]])

ARGS = {
    "true": true,
    "predicted": predicted
}
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

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 16 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.

FunctionAlso present inEarliest-datedOthers named
meddistance 2 other papers
1 dated earlier, 1 later
1605.06796 (2016-05)
Interpretable Distribution Features with Maximum Testing Power
2211.04446 (2022-11)
Private Set Generation with Discriminative Information
dist_matrix 1 other paper
1 later
2211.04446 (2022-11)
Private Set Generation with Discriminative Information

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 address the problem of non-parametric multiple model comparison: given $l$ candidate models, decide whether each candidate is as good as the best one(s) or worse than it. We propose two statistical tests, each controlling a different notion of decision errors. The first test, building on the post selection inference framework, provably controls the number of best models that are wrongly declared worse (false positive rate). The second test is based on multiple correction, and controls the proportion of the models declared worse but are in fact as good as the best (false discovery rate). We prove that under appropriate conditions the first test can yield a higher true positive rate than the second. Experimental results on toy and real (CelebA, Chicago Crime data) problems show that the two tests have high true positive rates with well-controlled error rates. By contrast, the naive approach of choosing the model with the lowest score without correction leads to more false positives.

For agents

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

get_harvested_code_for_paper("1910.12252")
get_code_for_paper("1910.12252")
have("1910.12252")

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

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

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

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

Connect an agent — have() is free.