SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.05890 · 2023

CUTS+: High-dimensional Causal Discovery from Irregular Time-series

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2305.05890.json · badge: /api/ran/2305.05890.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
jarrycyx/unn canonical (classifier label)
classifier basis: classifier_2025
6 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
FunctionStatusWhere it lives
check_stationarity Ran
ran, honoured the contract we drafted
jarrycyx/unn/CUTS_Plus/data/generate_data_mod.py
code served (permissive licence) · get_code("2e1e2740647f3438")
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 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

# The function expects a 'links' structure that represents a VAR model
# links is a list of length N (number of variables)
# Each element links[j] is a list of link properties for variable j
# Each link_props is a tuple: ((var, lag), coeff, coupling)
# where:
#   - var: index of the source variable
#   - lag: time lag (negative for past)
#   - coeff: coefficient value
#   - coupling: coupling type/name

N = 3  # Number of variables
max_lag = 2  # Maximum lag

# Create a simple stationary VAR(2) model
# Variable 0 depends on variable 1 at lag -1 with coefficient 0.3
# Variable 1 depends on variable 0 at lag -1 with coefficient 0.2
# Variable 2 depends on variable 1 at lag -2 with coefficient 0.1

links = [
    # Links for variable 0
    [
        ((1, -1), 0.3, 'linear'),  # var 0 <- var 1 at lag -1
        ((0, -1), 0.2, 'linear'),  # var 0 <- var 0 at lag -1 (autoregressive)
    ],
    # Links for variable 1
    [
        ((0, -1), 0.2, 'linear'),  # var 1 <- var 0 at lag -1
        ((1, -2), 0.15, 'linear'), # var 1 <- var 1 at lag -2
    ],
    # Links for variable 2
    [
        ((1, -2), 0.1, 'linear'),  # var 2 <- var 1 at lag -2
        ((2, -1), 0.25, 'linear'), # var 2 <- var 2 at lag -1
    ]
]

ARGS = {'links': links}
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 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
find_lineprofile_cmp Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jarrycyx/unn/CUTS_Plus/utils/exp_utils.py
code served (permissive licence) · get_code("1773694b64273196")
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 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 a list of numpy arrays (images) with values that will satisfy the condition
# The function looks for pixels where max value across images is between 2500 and 3000
# It samples every 10th pixel in x and y directions

# Create 3 images of size 30x40 to ensure we have enough pixels to sample
# (sampling every 10 pixels starting from 0)
im1 = np.ones((30, 40)) * 1000
im2 = np.ones((30, 40)) * 2000
im3 = np.ones((30, 40)) * 2700  # This will be the max value

# Set a specific pixel to have the target range
# At position (0, 0) the max will be 2700 which is in range [2500, 3000]
im_list = [im1, im2, im3]

ARGS = {
    'im_list': im_list
}
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 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
generate_indices Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from jarrycyx/unn
pointer only · get_code("5c86959f0283a76a")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_nonlinear_contemp_timeseries Ran
ran; our contract draft was wrong, not the code
jarrycyx/unn/CUTS_Plus/data/generate_data_mod.py
code served (permissive licence) · get_code("6825deafa85f9ef0")
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 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

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

# Define a simple nonlinear function for the links
def identity_func(x):
    return x

def square_func(x):
    return x**2

# Create a small VAR model with contemporaneous and lagged links
# N = 3 variables, with some lagged and contemporaneous relationships

# links is a dictionary where links[j] contains a list of link properties for variable j
# Each link_prop is a tuple: ((var, lag), coeff, func)
# - (var, lag): which variable and at what lag (0 for contemporaneous, negative for past)
# - coeff: coefficient (must be float)
# - func: function to apply

links = {
    0: [
        ((0, -1), 0.5, identity_func),  # X0(t) depends on X0(t-1)
    ],
    1: [
        ((0, 0), 0.3, identity_func),   # X1(t) depends on X0(t) contemporaneously
        ((1, -1), 0.4, identity_func),  # X1(t) depends on X1(t-1)
    ],
    2: [
        ((1, 0), 0.2, identity_func),   # X2(t) depends on X1(t) contemporaneously
        ((0, -1), 0.3, identity_func),  # X2(t) depends on X0(t-1)
        ((2, -1), 0.35, identity_func), # X2(t) depends on X2(t-1)
    ]
}

# T: number of time steps
T = 50

# noises: list of noise functions for each variable
# Each should be a callable that takes an integer and returns an array of that length
def noise_func_0(n):
    return np.random.randn(n)

def noise_func_1(n):
    return np.random.randn(n)

def noise_func_2(n):
    return np.random.randn(n)

noises = [noise_func_0, noise_func_1, noise_func_2]

# random_state: numpy random state
random_state = np.random.RandomState(42)

ARGS = {
    'links': links,
    'T': T,
    'noises': noises,
    'random_state': random_state
}
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 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
generate_random_contemp_model Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jarrycyx/unn/CUTS_Plus/data/generate_data_mod.py
code served (permissive licence) · get_code("4077d55cef2b6736")
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 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

def identity(x):
    return x

def square(x):
    return x**2

def cube(x):
    return x**3

np.random.seed(42)
random_state = np.random.RandomState(42)

N = 5
L = 8
coupling_coeffs = [0.3, 0.5, -0.4, 0.6]
coupling_funcs = [identity, square, cube]
auto_coeffs = [0.2, 0.4, 0.0]
tau_max = 3
contemp_fraction = 0.3

ARGS = {
    'N': N,
    'L': L,
    'coupling_coeffs': coupling_coeffs,
    'coupling_funcs': coupling_funcs,
    'auto_coeffs': auto_coeffs,
    'tau_max': tau_max,
    'contemp_fraction': contemp_fraction,
    'random_state': random_state
}
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 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_decompressed_path Ran
ran; our contract draft was wrong, not the code
jarrycyx/unn/CUTS_Plus/utils/exp_utils.py
code served (permissive licence) · get_code("f54cadf641fb2f2e")
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 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 os
import tempfile
import shutil

# Create a temporary directory structure that the function expects
temp_dir = tempfile.mkdtemp()

# Create a result root directory
res_root = os.path.join(temp_dir, "results")
os.makedirs(res_root)

# Create a decompressed directory with a .tif file (highest priority case)
decompressed_dir = os.path.join(res_root, "decompressed")
os.makedirs(decompressed_dir)
tif_file = os.path.join(decompressed_dir, "output.tif")
with open(tif_file, "w") as f:
    f.write("dummy tif content")

# Also create some steps directories to test the fallback logic
steps5_dir = os.path.join(res_root, "steps5")
os.makedirs(steps5_dir)
steps10_dir = os.path.join(res_root, "steps10")
os.makedirs(steps10_dir)
steps10_decompressed = os.path.join(steps10_dir, "decompressed")
os.makedirs(steps10_decompressed)
steps10_file = os.path.join(steps10_decompressed, "output.png")
with open(steps10_file, "w") as f:
    f.write("dummy png content")

# Create an opt_path that points to a file in res_root
opt_path = os.path.join(res_root, "options.yaml")
with open(opt_path, "w") as f:
    f.write("dummy options")

ARGS = {
    "opt_path": opt_path
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — 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
name Ran
ran; our contract draft was wrong, not the code
jarrycyx/unn/CUTS_Plus/utils/exp_utils.py
code served (permissive licence) · get_code("f61b343a30e8ea11")
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 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.

ARGS = {
    'alias': 'h265'
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — 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
prepross_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from jarrycyx/unn
pointer only · get_code("923cb04dc471f021")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is 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, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 6 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
1 dated earlier, 1 later
2302.07458 (2023-02)
CUTS: Neural Causal Discovery from Irregular Time-Series Data
2505.16620 (2025-05)
CausalDynamics: A large-scale benchmark for structural discovery of dynamical causal models
prepross_data 2 other papers
1 dated earlier, 1 later
2302.07458 (2023-02)
CUTS: Neural Causal Discovery from Irregular Time-Series Data
2505.16620 (2025-05)
CausalDynamics: A large-scale benchmark for structural discovery of dynamical causal models

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 in time-series is a fundamental problem in the machine learning community, enabling causal reasoning and decision-making in complex scenarios. Recently, researchers successfully discover causality by combining neural networks with Granger causality, but their performances degrade largely when encountering high-dimensional data because of the highly redundant network design and huge causal graphs. Moreover, the missing entries in the observations further hamper the causal structural learning. To overcome these limitations, We propose CUTS+, which is built on the Granger-causality-based causal discovery method CUTS and raises the scalability by introducing a technique called Coarse-to-fine-discovery (C2FD) and leveraging a message-passing-based graph neural network (MPGNN). Compared to previous methods on simulated, quasi-real, and real datasets, we show that CUTS+ largely improves the causal discovery performance on high-dimensional data with different types of irregular sampling.

For agents

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

get_harvested_code_for_paper("2305.05890")
get_code_for_paper("2305.05890")
have("2305.05890")

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

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

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

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

Connect an agent — have() is free.