SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.16620 · NeurIPS · 2025

CausalDynamics: A large-scale benchmark for structural discovery of dynamical causal models

Pierre Gentine, Juan Nathaniel, Benjamin Herdeanu, Carla Roesch, Jatan Buch, Gregor Ramien, Johannes Haux

arXiv · PDF · Open in the Atlas

Code that ran

16 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; 2 honoured the contract we drafted, 1 violated it and 10 have no contract verdict; 3 failures of our instrument; 2 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/2505.16620.json · badge: /api/ran/2505.16620.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
kausable/CausalDynamics canonical (classifier label)
classifier basis not recorded on the link
16 ran · 2 no recorded run
FunctionStatusWhere it lives
allocate_elements_based_on_ratios Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/utils.py
code served (permissive licence) · get_code("2f4eb9c6b555deaa")
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 int; 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

torch.manual_seed(0)

ARGS = {
    "n": 100,
    "ratios": [0.2, 0.3, 0.5],
}
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 list, ndim 1, dtype family int — 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
auto_window Ran
ran, violated the contract we drafted
kausable/CausalDynamics/src/causaldynamics/baselines/ccm.py
code served (permissive licence) · get_code("b9a951d367c8d9ff")
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 numpy as np
from jaxtyping import Float
from numpy import ndarray

# Create small autocorrelation time array
np.random.seed(0)
taus = np.array([0.5, 1.2, 2.3, 3.1, 4.5, 5.2], dtype=np.float64)

# Define constant c for the windowing procedure
c = 5.0

ARGS = {
    "taus": taus,
    "c": c,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jaxtyping, numpy — 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
autocorr_func_1d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kausable/CausalDynamics/src/causaldynamics/baselines/ccm.py
code served (permissive licence) · get_code("2258cab64f4fe6dd")
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 (8,) 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 a simple 1D signal (array of floats)
signal = np.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0], dtype=np.float64)

ARGS = {
    'x': signal,
    'norm': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jaxtyping, 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 (8,) — shape (8,) 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
calculate_magnitudes Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/mlp.py
code served (permissive licence) · get_code("ead1e793d8f65940")
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 Tensor, 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 torch

torch.manual_seed(0)

# Create a tensor of weight matrices with shape (num_nodes, input_dim, output_dim)
# Using distinct dimensions: 2 nodes, 4 input dim, 3 output dim
W = torch.randn(2, 4, 3)

ARGS = {
    "W": W
}
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 Tensor, 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
create_scm_graph Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/scm.py
code served (permissive licence) · get_code("665650f6dc5d52b7")
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 MultiDiGraph. 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

torch.manual_seed(0)

# Create a small adjacency matrix (2D case)
adjacency_matrix_2d = torch.tensor([
    [0, 1, 0, 0],
    [0, 0, 1, 0],
    [0, 0, 0, 1],
    [0, 0, 0, 0]
], dtype=torch.float32)

ARGS = {
    "adjacency_matrix": adjacency_matrix_2d,
    "add_root_nodes_self_edges": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MultiDiGraph — a MultiDiGraph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MultiDiGraph output the recorded ndim 1 and dtype family int 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
format_vector_values Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/plot.py
code served (permissive licence) · get_code("0f245c032bfe50da")
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 str. 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
import torch

torch.manual_seed(0)

# Test case 1: numpy array with default parameters
values_np = np.array([1.23456, 2.34567, 3.45678, 4.56789, 5.67890])

# Test case 2: torch tensor with custom precision
torch_values = torch.tensor([0.111111, 0.222222, 0.333333, 0.444444])

# Test case 3: small numpy array with max_elements constraint
small_values = np.array([1.5, 2.5, 3.5])

ARGS = {
    "values": values_np,
    "precision": 2,
    "max_elements": 3
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
generate_indices Ran
ran, honoured the contract we drafted
kausable/CausalDynamics/src/causaldynamics/baselines/cuts.py
code served (permissive licence) · get_code("5c86959f0283a76a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family int; 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)

# Define parameters for generate_indices
# input_step: number of input steps
# pred_step: number of prediction steps
# t_length: total length of time series
# block_size: size of each block (must divide t_length evenly)

input_step = 2
pred_step = 3
t_length = 12  # Must be divisible by block_size
block_size = 6  # Must divide t_length evenly

ARGS = {
    'input_step': input_step,
    'pred_step': pred_step,
    't_length': t_length,
    'block_size': block_size
}
Setup block drafted by
a language model, Claude Sonnet 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 list, ndim 1, dtype family int — 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
get_root_nodes_mask Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/scm.py
code served (permissive licence) · get_code("6e3d415f253c4112")
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 Tensor, ndim 1, dtype family float, shape (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 torch

torch.manual_seed(0)

# Create a small adjacency matrix for a directed graph
# Shape: (n, n) where n=4
# Example: A[i,j] = 1 means edge from i to j
# Let's create a graph where node 0 and 1 are root nodes (no incoming edges)
A = torch.tensor([
    [0, 0, 1, 1],  # node 0 has edges to 2, 3
    [0, 0, 1, 0],  # node 1 has edge to 2
    [0, 0, 0, 1],  # node 2 has edge to 3
    [0, 0, 0, 0],  # node 3 has no outgoing edges
], dtype=torch.float32)

ARGS = {
    "A": A
}
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 Tensor, ndim 1, dtype family float, shape (4,) — shape (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
gumbel_softmax Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kausable/CausalDynamics/src/causaldynamics/baselines/cuts.py
code served (permissive licence) · get_code("6d7b4720abae6d94")
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 Tensor, ndim 2, dtype family float, shape (2, 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 torch
import warnings

torch.manual_seed(0)

# Construct a small logits tensor with batch size 2 and 4 classes
logits = torch.randn(2, 4)

# Define the ARGS dictionary with all parameters
ARGS = {
    "logits": logits,
    "tau": 1.0,
    "hard": False,
    "eps": 1e-10,
    "dim": -1,
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
initialize_biases Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/initialization.py
code served (permissive licence) · get_code("810f75d172bcd4ad")
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 Tensor, ndim 2, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

ARGS = {
    "num_nodes": 2,
    "node_dim": 4,
    "device": None,
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
next_pow_two Ran
ran, honoured the contract we drafted
kausable/CausalDynamics/src/causaldynamics/baselines/ccm.py
code served (permissive licence) · get_code("a87ef11e3dd91c9f")
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
import numpy as np

ARGS = {
    "n": 10
}
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 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
prepross_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kausable/CausalDynamics/src/causaldynamics/baselines/cuts.py
code served (permissive licence) · get_code("923cb04dc471f021")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned ndarray, ndim 3, dtype family float, shape (5, 3, 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

# Create a small 3D numpy array with shape (T, N, D)
# T = time steps, N = nodes, D = features
# Using distinct sizes: T=5, N=3, D=4
data = np.random.randn(5, 3, 4)

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Sonnet 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 3, dtype family float, shape (5, 3, 4) — shape (5, 3, 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
propagate_mlp_at_node Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/mlp.py
code served (permissive licence) · get_code("5cfe2ebe0302af52")
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 Tensor, 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 torch

torch.manual_seed(0)

# Construct tensors with distinct dimension sizes to probe shapes
num_timesteps = 2
num_nodes = 4
node_dim = 3

# x: (num_timesteps, num_nodes, node_dim)
x = torch.randn(num_timesteps, num_nodes, node_dim)

# idx: index of the node to update
idx = 1

# A: transposed adjacency matrix (num_nodes, num_nodes)
# Make it sparse so some nodes have incoming edges
A = torch.zeros(num_nodes, num_nodes)
A[1, 0] = 1  # node 1 receives from node 0
A[1, 2] = 1  # node 1 receives from node 2

# W: weight tensor (num_nodes, node_dim, node_dim)
W = torch.randn(num_nodes, node_dim, node_dim)

# b: bias tensor (num_nodes, node_dim)
b = torch.randn(num_nodes, node_dim)

# activation: optional activation function
activation = torch.relu

ARGS = {
    "x": x,
    "idx": idx,
    "A": A,
    "W": W,
    "b": b,
    "activation": activation,
}
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 Tensor, 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
sample_scale_free_DAG Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/scm.py
code served (permissive licence) · get_code("fd3dc305d21c388c")
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 Tensor, ndim 2, dtype family float, shape (5, 5) 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
torch.manual_seed(0)

# The function signature is incomplete, but based on the class provided,
# we can infer that sample_scale_free_DAG likely takes similar parameters
# to GrowingNetworkWithRedirection

# Looking at the GrowingNetworkWithRedirection class:
# - It takes num_nodes (int) and redirect_prob (float, optional)
# - The generate() method returns a torch.Tensor
# - The generate_with_confounders() method also returns a torch.Tensor

# Constructing minimal valid arguments for sample_scale_free_DAG
ARGS = {
    "num_nodes": 5,
    "redirect_prob": 0.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 Tensor, ndim 2, dtype family float, shape (5, 5) — shape (5, 5) 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
score Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/score.py
code served (permissive licence) · get_code("fe027f1e8d858d64")
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 numpy as np
import pandas as pd

# Create small sample data for the score function
# The function expects preds and labs, with optional name parameter

# Create predictions: 3D array (N, T, D) where N=batch, T=time/sequence, D=features
# Using shape (2, 3, 4) for distinct dimensions
preds = np.random.rand(2, 3, 4).astype(np.float32)

# Create labels: 2D array (T, D) - will be expanded to match preds
# Using shape (3, 4) to match T and D dimensions of preds
labs = np.random.randint(0, 2, size=(3, 4)).astype(np.float32)

# Define ARGS dictionary with all parameters
ARGS = {
    'preds': preds,
    'labs': labs,
    'name': 'TestResult'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — 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
solve_single_system Ran
ran on a synthesized input
kausable/CausalDynamics/src/causaldynamics/systems.py
code served (permissive licence) · get_code("5a77ea68b688effd")
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 (50, 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 MockDynSys:
    """Mock dynamical system following dysts.flows.DynSys interface"""
    def __init__(self):
        self.ic = np.array([0.1, 0.2, 0.3])  # initial conditions
    
    def make_trajectory(self, num_timesteps, **kwargs):
        """Generate a trajectory"""
        # Return a simple trajectory: (num_timesteps, len(ic))
        trajectory = np.random.randn(num_timesteps, len(self.ic))
        return trajectory

np.random.seed(0)

model = MockDynSys()
num_timesteps = 50
make_trajectory_kwargs = {"dt": 0.01, "standardize": False}

ARGS = {
    "model": model,
    "num_timesteps": num_timesteps,
    "make_trajectory_kwargs": make_trajectory_kwargs
}
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 (50, 3) — shape (50, 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_confounders Not yet run
unverified (harvested, no recorded run)
kausable/CausalDynamics/src/causaldynamics/utils.py
code served (permissive licence) · get_code("88ca1ae98eead617")
How it ran

no invocation recorded.

process_confounders Not yet run
unverified (harvested, no recorded run)
kausable/CausalDynamics/src/causaldynamics/utils.py
code served (permissive licence) · get_code("36afd41b1830ebb0")
How it ran

no invocation recorded.

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, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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
generate_indices 2 other papers
2 dated earlier
2302.07458 (2023-02)
CUTS: Neural Causal Discovery from Irregular Time-Series Data
2305.05890 (2023-05)
CUTS+: High-dimensional Causal Discovery from Irregular Time-series
prepross_data 2 other papers
2 dated earlier
2302.07458 (2023-02)
CUTS: Neural Causal Discovery from Irregular Time-Series Data
2305.05890 (2023-05)
CUTS+: High-dimensional Causal Discovery from Irregular Time-series
auto_window 1 other paper
1 dated earlier
2410.23499 (2024-10)
Tangent Space Causal Inference: Leveraging Vector Fields for Causal Discovery in Dynamical Systems
autocorr_func_1d 1 other paper
1 dated earlier
2410.23499 (2024-10)
Tangent Space Causal Inference: Leveraging Vector Fields for Causal Discovery in Dynamical Systems
gumbel_softmax 1 other paper
1 dated earlier
ijcai2024_0790 (2024 (year only))
CausalNET: Unveiling Causal Structures on Event Sequences by Topology-Informed Causal Attention
next_pow_two 1 other paper
1 dated earlier
2410.23499 (2024-10)
Tangent Space Causal Inference: Leveraging Vector Fields for Causal Discovery in Dynamical Systems

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

Causal discovery for dynamical systems poses a major challenge in fields where active interventions are infeasible. Most methods used to investigate these systems and their associated benchmarks are tailored to deterministic, low-dimensional and weakly nonlinear time-series data. To address these limitations, we present Causal-Dynamics, a large-scale benchmark and extensible data generation framework to advance the structural discovery of dynamical causal models. Our benchmark consists of true causal graphs derived from thousands of both linearly and nonlinearly coupled ordinary and stochastic differential equations as well as two idealized climate models. We perform a comprehensive evaluation of state-of-the-art causal discovery algorithms for graph reconstruction on systems with noisy, confounded, and lagged dynamics. CausalDynamics consists of a plug-and-play, build-yourown coupling workflow that enables the construction of a hierarchy of physical systems. We anticipate that our framework will facilitate the development of robust causal discovery algorithms that are broadly applicable across domains while addressing their unique challenges. We provide a user-friendly implementation and documentation on https://kausable.github.io/CausalDynamics.

For agents

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

get_harvested_code_for_paper("2505.16620")
get_code_for_paper("2505.16620")
have("2505.16620")

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

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

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

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

Connect an agent — have() is free.