SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2302.07458 · 2023

CUTS: Neural Causal Discovery from Irregular Time-Series Data

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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 0 have no contract verdict; 2 failures of our instrument; 0 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/2302.07458.json · badge: /api/ran/2302.07458.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
3 ran · 0 no recorded run
FunctionStatusWhere it lives
generate_indices Ran
ran, honoured the contract we drafted
jarrycyx/unn/CUTS_Plus/cuts_plus.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
prepare_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jarrycyx/unn/REACT/medical_pred_main.py
code served (permissive licence) · get_code("38a7428690772e85")
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 torch
import warnings
from torch.utils.data import Dataset

torch.manual_seed(0)

# Create a stand-in MedicalDataset class that mimics the expected interface
class MockMedicalDataset(Dataset):
    def __init__(self, **kwargs):
        # Accept any keyword arguments
        self.data = torch.randn(10, 5)  # 10 samples, 5 features
        self.labels = torch.randint(0, 2, (10,))
    
    def __len__(self):
        return len(self.data)
    
    def __getitem__(self, idx):
        return self.data[idx], self.labels[idx]

# Mock the imports by injecting into sys.modules
import sys
from types import ModuleType

# Create mock modules for mimic_data
mimic_data_module = ModuleType('data_prep.mimic_data')
mimic_medical_dataset_module = ModuleType('data_prep.mimic_data.medical_dataset')
mimic_patient_data_module = ModuleType('data_prep.mimic_data.patient_data')

mimic_medical_dataset_module.MedicalDataset = MockMedicalDataset
mimic_patient_data_module.PatientData = object

sys.modules['data_prep'] = ModuleType('data_prep')
sys.modules['data_prep.mimic_data'] = mimic_data_module
sys.modules['data_prep.mimic_data.medical_dataset'] = mimic_medical_dataset_module
sys.modules['data_prep.mimic_data.patient_data'] = mimic_patient_data_module

# Create mock modules for pla_data
pla_data_module = ModuleType('data_prep.pla_data')
pla_medical_dataset_module = ModuleType('data_prep.pla_data.medical_dataset')
pla_patient_data_module = ModuleType('data_prep.pla_data.patient_data')

pla_medical_dataset_module.MedicalDataset = MockMedicalDataset
pla_patient_data_module.PatientData = object

sys.modules['data_prep.pla_data'] = pla_data_module
sys.modules['data_prep.pla_data.medical_dataset'] = pla_medical_dataset_module
sys.modules['data_prep.pla_data.patient_data'] = pla_patient_data_module

# Create an opt object with the required attributes
class OptConfig:
    def __init__(self):
        self.name = 'mimic'
        self.shared_param = {
            'data_path': '/fake/path',
            'max_length': 100,
            'feature_dim': 5
        }
        self.test = {
            'split': 'test',
            'batch_size': 2
        }
        self.train_val = {
            'split': 'train',
            'batch_size': 2
        }

opt = OptConfig()

ARGS = {'opt': opt}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
data_prep, torch — 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
prepross_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jarrycyx/unn/CUTS_Plus/cuts_plus.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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 1 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 later
2305.05890 (2023-05)
CUTS+: High-dimensional Causal Discovery from Irregular Time-series
2505.16620 (2025-05)
CausalDynamics: A large-scale benchmark for structural discovery of dynamical causal models
prepross_data 2 other papers
2 later
2305.05890 (2023-05)
CUTS+: High-dimensional Causal Discovery from Irregular Time-series
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-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

Causal discovery from time-series data has been a central task in machine learning. Recently, Granger causality inference is gaining momentum due to its good explainability and high compatibility with emerging deep neural networks. However, most existing methods assume structured input data and degenerate greatly when encountering data with randomly missing entries or non-uniform sampling frequencies, which hampers their applications in real scenarios. To address this issue, here we present CUTS, a neural Granger causal discovery algorithm to jointly impute unobserved data points and build causal graphs, via plugging in two mutually boosting modules in an iterative framework: (i) Latent data prediction stage: designs a Delayed Supervision Graph Neural Network (DSGNN) to hallucinate and register unstructured data which might be of high dimension and with complex distribution; (ii) Causal graph fitting stage: builds a causal adjacency matrix with imputed data under sparse penalty. Experiments show that CUTS effectively infers causal graphs from unstructured time-series data, with significantly superior performance to existing methods. Our approach constitutes a promising step towards applying causal discovery to real applications with non-ideal observations.

For agents

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

get_harvested_code_for_paper("2302.07458")
get_code_for_paper("2302.07458")
have("2302.07458")

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

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

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

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

Connect an agent — have() is free.