SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.13891 · 2021

Dynamic Causal Bayesian Optimization

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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 6 have no contract verdict; 0 failures of our instrument; 1 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/2110.13891.json · badge: /api/ran/2110.13891.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
neildhir/dcbo canonical (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
FunctionStatusWhere it lives
cost_fix_equal Ran
ran on a synthesized input
neildhir/dcbo/dcbo/bayes_opt/cost_functions.py
code served (permissive licence) · get_code("e7b2e7585e681deb")
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 float, 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 torch
import numpy as np

torch.manual_seed(0)

# The function cost_fix_equal takes intervention_value as a parameter
# Looking at the body, it doesn't actually use intervention_value for anything,
# it just returns a fixed cost of 1.0
# However, we still need to provide a valid argument

# intervention_value could be a scalar, tensor, or other numeric type
# Let's provide a small tensor as a reasonable stand-in
intervention_value = torch.tensor([0.5, 0.3, 0.2, 0.1], dtype=torch.float32)

ARGS = {
    "intervention_value": intervention_value
}
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 float, 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
cost_fix_equal_variable Ran
ran on a synthesized input
neildhir/dcbo/dcbo/bayes_opt/cost_functions.py
code served (permissive licence) · get_code("390401979856bd3c")
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 takes intervention_value as a parameter
# It computes the sum of absolute values plus a fixed cost
# intervention_value should be array-like (numpy array or similar)

# Create a small numpy array to serve as intervention_value
intervention_value = np.array([0.5, -1.2, 0.3, -0.8])

ARGS = {
    "intervention_value": intervention_value
}
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
get_cumulative_cost_mean_and_std Ran
ran on a synthesized input
neildhir/dcbo/dcbo/experimental/analyse_results.py
code served (permissive licence) · get_code("23c14622b2d9dd00")
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 dict. 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

# Construct the data structure
# The function expects: data[model_name][example_idx][timestep] -> array
# It accesses data[model].keys(), iterates over t in range(t_steps),
# accesses data[model][ex][t], and calls np.vstack and cumsum on it

# Create sample cost arrays for each timestep
# Each timestep should have a 1D array of costs
np.random.seed(0)

data = {
    "model_a": [
        # Example 0: 5 timesteps, each with 3 cost values
        [np.array([0.1, 0.2, 0.15]), np.array([0.2, 0.3, 0.25]), np.array([0.3, 0.4, 0.35]), np.array([0.4, 0.5, 0.45]), np.array([0.5, 0.6, 0.55])],
        # Example 1
        [np.array([0.12, 0.22, 0.17]), np.array([0.22, 0.32, 0.27]), np.array([0.32, 0.42, 0.37]), np.array([0.42, 0.52, 0.47]), np.array([0.52, 0.62, 0.57])],
        # Example 2
        [np.array([0.11, 0.21, 0.16]), np.array([0.21, 0.31, 0.26]), np.array([0.31, 0.41, 0.36]), np.array([0.41, 0.51, 0.46]), np.array([0.51, 0.61, 0.56])],
        # Example 3
        [np.array([0.13, 0.23, 0.18]), np.array([0.23, 0.33, 0.28]), np.array([0.33, 0.43, 0.38]), np.array([0.43, 0.53, 0.48]), np.array([0.53, 0.63, 0.58])],
        # Example 4
        [np.array([0.14, 0.24, 0.19]), np.array([0.24, 0.34, 0.29]), np.array([0.34, 0.44, 0.39]), np.array([0.44, 0.54, 0.49]), np.array([0.54, 0.64, 0.59])],
    ],
    "model_b": [
        # Example 0
        [np.array([0.15, 0.25, 0.20]), np.array([0.25, 0.35, 0.30]), np.array([0.35, 0.45, 0.40]), np.array([0.45, 0.55, 0.50]), np.array([0.55, 0.65, 0.60])],
        # Example 1
        [np.array([0.16, 0.26, 0.21]), np.array([0.26, 0.36, 0.31]), np.array([0.36, 0.46, 0.41]), np.array([0.46, 0.56, 0.51]), np.array([0.56, 0.66, 0.61])],
        # Example 2
        [np.array([0.17, 0.27, 0.22]), np.array([0.27, 0.37, 0.32]), np.array([0.37, 0.47, 0.42]), np.array([0.47, 0.57, 0.52]), np.array([0.57, 0.67, 0.62])],
        # Example 3
        [np.array([0.18, 0.28, 0.23]), np.array([0.28, 0.38, 0.33]), np.array([0.38, 0.48, 0.43]), np.array([0.48, 0.58, 0.53]), np.array([0.58, 0.68, 0.63])],
        # Example 4
        [np.array([0.19, 0.29, 0.24]), np.array([0.29, 0.39, 0.34]), np.array([0.39, 0.49, 0.44]), np.array([0.49, 0.59, 0.54]), np.array([0.59, 0.69, 0.64])],
    ]
}

ARGS = {
    "data": data,
    "t_steps": 5,
    "repeats": 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_mean_and_std Ran
ran on a synthesized input
neildhir/dcbo/dcbo/experimental/analyse_results.py
code served (permissive licence) · get_code("df2fcd3b06026a34")
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 dict. 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

# Construct the data structure expected by get_mean_and_std
# The function expects:
# - data: dict where keys are model names
# - data[model]: list of length `repeats` (5 by default)
# - data[model][ex]: array-like with t_steps entries
# - data[model][ex][t]: array that can be vstacked

# Create sample data with distinct dimensions to avoid ambiguity
# Using shape (4, 3) for individual samples so we can track dimensions

np.random.seed(0)

# Create data for 2 models, each with 5 repeats (examples)
# Each example has t_steps arrays
data = {
    "model_a": [
        [np.random.randn(4, 3) for _ in range(7)],  # 7 time steps
        [np.random.randn(4, 3) for _ in range(7)],
        [np.random.randn(4, 3) for _ in range(7)],
        [np.random.randn(4, 3) for _ in range(7)],
        [np.random.randn(4, 3) for _ in range(7)],
    ],
    "model_b": [
        [np.random.randn(4, 3) for _ in range(7)],
        [np.random.randn(4, 3) for _ in range(7)],
        [np.random.randn(4, 3) for _ in range(7)],
        [np.random.randn(4, 3) for _ in range(7)],
        [np.random.randn(4, 3) for _ in range(7)],
    ],
}

ARGS = {
    "data": data,
    "t_steps": 7,
    "repeats": 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_relevant_results Ran
ran on a synthesized input
neildhir/dcbo/dcbo/experimental/analyse_results.py
code served (permissive licence) · get_code("33d9be28b1918dbf")
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 dict. 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 torch
import numpy as np

# Create a small stand-in class to represent a result object
class ResultObject:
    def __init__(self, trial_idx, replicate_idx):
        self.per_trial_cost = np.array([0.5, 0.3, 0.2, 0.1])
        self.optimal_outcome_values_during_trials = np.array([1.0, 1.5, 2.0, 2.5])
        self.optimal_intervention_sets = [set([0]), set([1, 2]), set([3]), set()]
        self.assigned_blanket = {"var_1": trial_idx, "var_2": replicate_idx}

# Create a callable (dict-like) object that mimics the results structure
class ResultsCallable(dict):
    """A callable dict subclass to represent results from run_methods_replicates()"""
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
    
    def __call__(self):
        return self

# Build the results structure
results_data = ResultsCallable()

# Create results for 3 different methods, each with 2 replicates
methods = ["method_A", "method_B", "method_C"]
num_replicates = 2

for method in methods:
    results_data[method] = {}
    for rep in range(num_replicates):
        results_data[method][rep] = ResultObject(trial_idx=rep, replicate_idx=rep)

# Define ARGS
ARGS = {
    "results": results_data,
    "replicates": num_replicates
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_standard_normal_pdf_cdf Ran
ran on a synthesized input
neildhir/dcbo/dcbo/bayes_opt/causal_acquisition_functions.py
code served (permissive licence) · get_code("91540d2ba977de33")
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
import scipy.stats

# Create small test arrays with distinct sizes for clarity
x = np.array([1.0, 2.0, 3.0, 4.0])
mean = np.array([0.5, 1.0, 1.5, 2.0])
standard_deviation = np.array([0.1, 0.2, 0.3, 0.4])

ARGS = {
    "x": x,
    "mean": mean,
    "standard_deviation": standard_deviation,
}
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 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
cost_fix_different Not yet run
unverified (harvested, no recorded run)
neildhir/dcbo/dcbo/bayes_opt/cost_functions.py
code served (permissive licence) · get_code("0f5582e298f23418")
How it ran

no invocation recorded.

Also present in other papers' code

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

This paper studies the problem of performing a sequence of optimal interventions in a causal dynamical system where both the target variable of interest and the inputs evolve over time. This problem arises in a variety of domains e.g. system biology and operational research. Dynamic Causal Bayesian Optimization (DCBO) brings together ideas from sequential decision making, causal inference and Gaussian process (GP) emulation. DCBO is useful in scenarios where all causal effects in a graph are changing over time. At every time step DCBO identifies a local optimal intervention by integrating both observational and past interventional data collected from the system. We give theoretical results detailing how one can transfer interventional information across time steps and define a dynamic causal GP model which can be used to quantify uncertainty and find optimal interventions in practice. We demonstrate how DCBO identifies optimal interventions faster than competing approaches in multiple settings and applications.

For agents

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

get_harvested_code_for_paper("2110.13891")
get_code_for_paper("2110.13891")
have("2110.13891")

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

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

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

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

Connect an agent — have() is free.