SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2006.12394 · 2020

Output-Weighted Optimal Sampling for Bayesian Experimental Design and Uncertainty Quantification

arXiv · PDF · Open in the Atlas

Code that ran

4 of 8 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 4 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-22; 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/2006.12394.json · badge: /api/ran/2006.12394.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
ablancha/gpsearch canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
FunctionStatusWhere it lives
comp_pca Ran
ran on a synthesized input
ablancha/gpsearch/gpsearch/core/utils.py
code served (permissive licence) · get_code("0b1f8452b247ca06")
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

# Create a small data array with shape (n_pts, n_dim)
# Using distinct sizes: 5 points, 3 dimensions
np.random.seed(0)
usnap = np.random.randn(5, 3)

# Number of PCA dimensions to retain
n_trunc = 2

# Whether to detrend (remove mean)
detrend = True

ARGS = {
    'usnap': usnap,
    'n_trunc': n_trunc,
    'detrend': detrend
}
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
fix_dim_gmm Ran
ran on a synthesized input
ablancha/gpsearch/gpsearch/core/utils.py
code served (permissive licence) · get_code("0d517cf43fb29f08")
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 3, dtype family float, shape (2, 4, 4) 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

class MockGMM:
    """Mock Gaussian Mixture Model with required attributes."""
    def __init__(self, n_components, n_features, covariance_type, matrix_type):
        self.n_components = n_components
        self.means_ = np.random.randn(n_components, n_features)
        self.covariance_type = covariance_type
        
        if covariance_type == 'full':
            self.covariances_ = np.random.randn(n_components, n_features, n_features)
            self.precisions_ = np.random.randn(n_components, n_features, n_features)
            self.precisions_cholesky_ = np.random.randn(n_components, n_features, n_features)
        elif covariance_type == 'tied':
            self.covariances_ = np.random.randn(n_features, n_features)
            self.precisions_ = np.random.randn(n_features, n_features)
            self.precisions_cholesky_ = np.random.randn(n_features, n_features)
        elif covariance_type == 'diag':
            self.covariances_ = np.random.randn(n_components, n_features)
            self.precisions_ = np.random.randn(n_components, n_features)
            self.precisions_cholesky_ = np.random.randn(n_components, n_features)
        elif covariance_type == 'spherical':
            self.covariances_ = np.random.randn(n_components)
            self.precisions_ = np.random.randn(n_components)
            self.precisions_cholesky_ = np.random.randn(n_components)

gmm_full = MockGMM(n_components=2, n_features=4, covariance_type='full', matrix_type='covariance')

ARGS = {
    'gmm': gmm_full,
    'matrix_type': 'covariance'
}
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 3, dtype family float, shape (2, 4, 4) — shape (2, 4, 4) 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
mll Ran
ran on a synthesized input
ablancha/gpsearch/gpsearch/core/metrics.py
code served (permissive licence) · get_code("c0793f447f9921f3")
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 1, dtype family float, shape (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

class SimpleModel:
    """Minimal model class that provides predict_noiseless method."""
    def predict_noiseless(self, pts):
        # Return mean and variance predictions
        # pts shape: (n_samples, n_features)
        n_samples = pts.shape[0]
        mu = np.random.randn(n_samples, 1)
        var = np.abs(np.random.randn(n_samples, 1)) + 0.1  # Ensure positive variance
        return mu, var

class Inputs:
    """Minimal Inputs class."""
    pass

# Create setup
np.random.seed(0)

# Create a list of models
m_list = [SimpleModel() for _ in range(3)]

# Create an Inputs instance
inputs = Inputs()

# Create sample points (n_samples=5, n_features=4)
pts = np.random.randn(5, 4)

# Create output values matching pts shape
yy = np.random.randn(5, 1)

# Define ARGS
ARGS = {
    'm_list': m_list,
    'inputs': inputs,
    'pts': pts,
    'yy': yy,
    'accumulate': False
}
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 1, dtype family float, shape (3,) — shape (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
rmse Ran
ran on a synthesized input
ablancha/gpsearch/gpsearch/core/metrics.py
code served (permissive licence) · get_code("574bbedcda73512c")
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 1, dtype family float, shape (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

class MockInputs:
    """Stand-in for Inputs class."""
    pass

class MockGPModel:
    """Stand-in for GPy model with predict method."""
    def __init__(self):
        self.call_count = 0
    
    def predict(self, pts):
        """Returns tuple of (mu, variance) like GPy models do."""
        # pts shape is (n_points, n_features)
        # Return predictions of same length
        n_points = pts.shape[0]
        mu = np.random.randn(n_points, 1)
        variance = np.ones((n_points, 1))
        return (mu, variance)

np.random.seed(0)

# Create sample data
n_pts = 5
n_features = 3
pts = np.random.randn(n_pts, n_features)
yy = np.random.randn(n_pts, 1)

# Create a list of mock GP models
m_list = [MockGPModel() for _ in range(3)]

# Create mock Inputs instance
inputs = MockInputs()

ARGS = {
    "m_list": m_list,
    "inputs": inputs,
    "pts": pts,
    "yy": yy,
    "accumulate": False,
}
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 1, dtype family float, shape (3,) — shape (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
check_acquisition Not yet run
unverified (harvested, no recorded run)
ablancha/gpsearch/gpsearch/core/acquisitions/check_acquisition.py
code served (permissive licence) · get_code("c7d41edccab6fde1")
How it ran

no invocation recorded.

funmin Not yet run
unverified (harvested, no recorded run)
ablancha/gpsearch/gpsearch/core/minimizers.py
code served (permissive licence) · get_code("07eb01fef6d9c5b3")
How it ran

no invocation recorded.

grid_nint Not yet run
unverified (harvested, no recorded run)
ablancha/gpsearch/gpsearch/core/utils.py
code served (permissive licence) · get_code("d78d639485eee981")
How it ran

no invocation recorded.

log_pdf Not yet run
unverified (harvested, no recorded run)
ablancha/gpsearch/gpsearch/core/metrics.py
code served (permissive licence) · get_code("d6f6f66fad393f1d")
How it ran

no invocation recorded.

Also present in other papers' code

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

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 introduce a class of acquisition functions for sample selection that leads to faster convergence in applications related to Bayesian experimental design and uncertainty quantification. The approach follows the paradigm of active learning, whereby existing samples of a black-box function are utilized to optimize the next most informative sample. The proposed method aims to take advantage of the fact that some input directions of the black-box function have a larger impact on the output than others, which is important especially for systems exhibiting rare and extreme events. The acquisition functions introduced in this work leverage the properties of the likelihood ratio, a quantity that acts as a probabilistic sampling weight and guides the active-learning algorithm towards regions of the input space that are deemed most relevant. We demonstrate superiority of the proposed approach in the uncertainty quantification of a hydrological system as well as the probabilistic quantification of rare events in dynamical systems and the identification of their precursors.

For agents

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

get_harvested_code_for_paper("2006.12394")
get_code_for_paper("2006.12394")
have("2006.12394")

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

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

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

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

Connect an agent — have() is free.