SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.10766 · ICLR · 2024

ODE Discovery for Longitudinal Heterogeneous Treatment Effects Inference

Mihaela Van Der Schaar, Zhaozhi Qian, Jeroen Berrevoets, Krzysztof Kacprzyk, Samuel Holt

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 6 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/2403.10766.json · badge: /api/ran/2403.10766.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
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
config_to_dict Ran
ran; our contract draft was wrong, not the code
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference/utils/exp_utils.py
code served (permissive licence) · get_code("d023278409398a8b")
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.

from omegaconf import DictConfig, OmegaConf

# Create a simple DictConfig with various types of values
config_dict = {
    "model": {
        "name": "test_model",
        "layers": 3,
        "hidden_size": 128
    },
    "training": {
        "lr": 0.001,
        "epochs": 10,
        "batch_size": 32
    },
    "debug": False,
    "nested": {
        "deep": {
            "value": 42
        }
    }
}

config = OmegaConf.create(config_dict)

ARGS = {
    "config": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf — 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
create_logger_in_process Ran
ran; our contract draft was wrong, not the code
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference/utils/logging_utils.py
code served (permissive licence) · get_code("91d117b031324779")
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 Logger. 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 tempfile
import torch
import logging
from torch import multiprocessing

# Create a temporary file path for the log file
temp_dir = tempfile.gettempdir()
log_file_path = f"{temp_dir}/test_logger.log"

ARGS = {
    "log_file_path": log_file_path
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
dict_to_config Ran
ran; our contract draft was wrong, not the code
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference/utils/exp_utils.py
code served (permissive licence) · get_code("a855121467fdc9f9")
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 DictConfig. 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
from omegaconf import DictConfig, OmegaConf

torch.manual_seed(0)

# The function dict_to_config takes a dictionary and converts it to an OmegaConf DictConfig
# It only calls OmegaConf.create(d), so we need to provide a valid dictionary

# Create a simple dictionary with various types of values
sample_dict = {
    "model": {
        "name": "test_model",
        "layers": 3,
        "hidden_dim": 128,
    },
    "training": {
        "learning_rate": 0.001,
        "batch_size": 32,
        "epochs": 10,
    },
    "data": {
        "path": "/tmp/data",
        "normalize": True,
    },
    "values": [1, 2, 3, 4],
}

ARGS = {
    "d": sample_dict,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, omegaconf, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DictConfig — a DictConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DictConfig output the recorded ndim 1 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
file_path_from_parent_directory Ran
ran; our contract draft was wrong, not the code
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference/utils/results_utils.py
code served (permissive licence) · get_code("417eade76c4290df")
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 glob
import tempfile
import os

# Create a temporary directory with some files for testing
temp_dir = tempfile.mkdtemp()

# Create a few dummy files in the temporary directory
for i in range(3):
    with open(os.path.join(temp_dir, f'file_{i}.txt'), 'w') as f:
        f.write(f'content {i}')

ARGS = {
    'parent_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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
get_dataset Ran
ran, honoured the contract we drafted
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference/libs_m/ct/runnables/run_utils.py
code served (permissive licence) · get_code("4f5266a8e125a9f4")
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 DictConfig. 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 torch.nn as nn
from dataclasses import dataclass
from typing import Any

torch.manual_seed(0)

# Create a minimal stand-in class for the dataset config
@dataclass
class DatasetConfig:
    def __str__(self):
        return "test_dataset_config"

# Create a minimal stand-in for instantiate to return
class SimpleDataset:
    def __init__(self):
        self.data = torch.randn(2, 4)
        self.labels = torch.randint(0, 2, (2,))

# Create a mock args object with dataset and control flags
class Args:
    def __init__(self):
        self.dataset = DatasetConfig()
        self.force_recache = False
        self.load_from_cache = False

ARGS = {
    "args": Args()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
hydra, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DictConfig — a DictConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DictConfig output the recorded ndim 1 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
load_metrics_from_tensorboard_file Ran
ran; our contract draft was wrong, not the code
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference/utils/results_utils.py
code served (permissive licence) · get_code("05a7c2acf6129723")
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
from unittest.mock import Mock, MagicMock
import tempfile
import os

# Create a minimal mock tensorboard log file
# Since we can't actually create a real tensorboard file easily,
# we'll create a temporary file path that the function will attempt to read
temp_dir = tempfile.mkdtemp()
log_path = os.path.join(temp_dir, "events.out.tfevents.1234567890")

# Create an empty file so the path exists
with open(log_path, 'w') as f:
    f.write('')

ARGS = {
    'log_path': log_path,
    'metrics': ['charts/episodic_return', 'charts/episodic_length', 'losses/td_loss']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow, 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
moving_average Ran
ran; our contract draft was wrong, not the code
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference/utils/results_utils.py
code served (permissive licence) · get_code("dfb9d0f97fc99892")
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 (6,) 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

# moving_average takes two parameters:
# x: array-like input for convolution
# N: window size for the moving average

# Create a simple 1D array to compute moving average over
x = np.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0])

# Window size for moving average
N = 3

ARGS = {
    'x': x,
    'N': N
}
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 (6,) — shape (6,) 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
generate_log_file_path Not yet run
unverified (harvested, no recorded run)
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference/utils/logging_utils.py
code served (permissive licence) · get_code("ac56469c6e01c50b")
How it ran

no invocation recorded.

load_dataset Not yet run
unverified (harvested, no recorded run)
samholt/ode-discovery-for-longitudinal-heterogeneous-treatment-effects-inference/utils/exp_utils.py
code served (permissive licence) · get_code("416afab47aa44669")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 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.

FunctionAlso present inEarliest-datedOthers named
create_logger_in_process 1 other paper
1 dated earlier
2310.02003 (2023-10)
L2MAC: Large Language Model Automatic Computer for Extensive Code Generation

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

Inferring unbiased treatment effects has received widespread attention in the machine learning community. In recent years, our community has proposed numerous solutions in standard settings, high-dimensional treatment settings, and even longitudinal settings. While very diverse, the solution has mostly relied on neural networks for inference and simultaneous correction of assignment bias. New approaches typically build on top of previous approaches by proposing new (or refined) architectures and learning algorithms. However, the end result-a neuralnetwork-based inference machine-remains unchallenged. In this paper, we introduce a different type of solution in the longitudinal setting: a closed-form ordinary differential equation (ODE). While we still rely on continuous optimization to learn an ODE, the resulting inference machine is no longer a neural network. Doing so yields several advantages such as interpretability, irregular sampling, and a different set of identification assumptions. Above all, we consider the introduction of a completely new type of solution to be our most important contribution as it may spark entirely new innovations in treatment effects in general. We facilitate this by formulating our contribution as a framework that can transform any ODE discovery method into a treatment effects method.

For agents

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

get_harvested_code_for_paper("2403.10766")
get_code_for_paper("2403.10766")
have("2403.10766")

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

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

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

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

Connect an agent — have() is free.