SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.09729 · ICML · 2025

Doubly Robust Conformalized Survival Analysis with Right-Censored Data

Matteo Sesia, Vladimir Svetnik

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 5 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/2412.09729.json · badge: /api/ran/2412.09729.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
jaredleekatzman/DeepSurv canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
extract_value_list Ran
ran, honoured the contract we drafted
jaredleekatzman/DeepSurv/deepsurv/viz.py
code served (permissive licence) · get_code("c020603e5d90f50e")
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 numpy as np

# The function extract_value_list takes an array-like object and:
# 1. Converts it to a numpy array
# 2. Indexes with [:, 1] to get all rows, column 1
# 3. Converts the result to a list
# 
# So we need a 2D array-like with at least 2 columns

arr = np.array([
    [1, 10, 100],
    [2, 20, 200],
    [3, 30, 300]
])

ARGS = {
    "arr": arr
}
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 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
format_dataset_to_df Ran
ran, honoured the contract we drafted
jaredleekatzman/DeepSurv/deepsurv/utils.py
code served (permissive licence) · get_code("68cd57ef9eb57662")
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 pandas as pd
import numpy as np

torch = None  # Not needed for this function

# Create a minimal dataset dict with the required keys
dataset = {
    'x': np.array([
        [1.0, 2.0, 3.0, 4.0],
        [5.0, 6.0, 7.0, 8.0]
    ]),
    't': np.array([10.5, 20.3]),
    'e': np.array([1, 0])
}

ARGS = {
    'dataset': dataset,
    'duration_col': 'duration',
    'event_col': 'event',
    'trt_idx': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
load_box_constraints Ran
ran; our contract draft was wrong, not the code
jaredleekatzman/DeepSurv/hyperparam_search/hyperparam_search.py
code served (permissive licence) · get_code("990568e09e1abe4e")
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 json
import tempfile
import os

# Create a temporary JSON file with box constraints data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "box_constraints.json")

# Create sample box constraints data
box_constraints_data = {
    "lower_bounds": [0.0, -1.5, -2.0, 0.5],
    "upper_bounds": [10.0, 1.5, 2.0, 5.0],
    "constraints": [
        {"type": "box", "dim": 0, "min": 0.0, "max": 10.0},
        {"type": "box", "dim": 1, "min": -1.5, "max": 1.5}
    ]
}

# Write the data to the temporary file
with open(temp_file, 'w') as fp:
    json.dump(box_constraints_data, fp)

ARGS = {
    "file": temp_file
}
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 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
load_datasets Ran
ran; our contract draft was wrong, not the code
jaredleekatzman/DeepSurv/deepsurv/utils.py
code served (permissive licence) · get_code("1124b42ac7ddd2a7")
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 defaultdict. 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 h5py
import tempfile
import os

# Create a temporary HDF5 file with test data
temp_dir = tempfile.mkdtemp()
dataset_file = os.path.join(temp_dir, "test_dataset.h5")

# Create test HDF5 file
with h5py.File(dataset_file, 'w') as f:
    # Create first dataset group with arrays
    ds1 = f.create_group('dataset1')
    ds1.create_dataset('array1', data=[1, 2, 3, 4])
    ds1.create_dataset('array2', data=[[1.0, 2.0], [3.0, 4.0]])
    
    # Create second dataset group with arrays
    ds2 = f.create_group('dataset2')
    ds2.create_dataset('array1', data=[5, 6, 7, 8])
    ds2.create_dataset('array3', data=[9.5, 10.5])

ARGS = {
    'dataset_file': dataset_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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
load_logger Ran
ran; our contract draft was wrong, not the code
jaredleekatzman/DeepSurv/hyperparam_search/hyperparam_search.py
code served (permissive licence) · get_code("47ecc3c11e5dbb00")
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 sys
import os
import uuid
import logging
import tempfile

# Create a temporary directory for logging
logdir = tempfile.mkdtemp()

ARGS = {
    'logdir': logdir
}
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 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
plot_risk_model Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jaredleekatzman/DeepSurv/deepsurv/viz.py
code served (permissive licence) · get_code("fb3bfa340a97dac0")
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 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 torch
import numpy as np
import matplotlib.pyplot as plt

torch.manual_seed(0)

# Create small arrays for scatter plot data
x_0 = np.array([0.1, 0.2, -0.3, 0.5, -0.8])
x_1 = np.array([-0.2, 0.4, 0.1, -0.5, 0.3])
hr = np.array([1.5, -0.8, 2.1, -1.3, 0.9])

ARGS = {
    'x_0': x_0,
    'x_1': x_1,
    'hr': hr,
    'figsize': (4, 3),
    'clim': (-3, 3),
    'cmap': 'jet'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, torch — 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
standardize_dataset Ran
ran; our contract draft was wrong, not the code
jaredleekatzman/DeepSurv/deepsurv/utils.py
code served (permissive licence) · get_code("9d24d145dfc0ba4a")
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 copy

torch.manual_seed(0)

# The function expects:
# - dataset: a dict with at least an 'x' key containing a tensor
# - offset: a numeric value (scalar or tensor) to subtract
# - scale: a numeric value (scalar or tensor) to divide by

# Create a small dataset dict
dataset = {
    'x': torch.randn(2, 4),  # batch_size=2, feature_dim=4
    'y': torch.tensor([0, 1])  # auxiliary data
}

# Create offset and scale
offset = torch.tensor(0.5)
scale = torch.tensor(2.0)

ARGS = {
    'dataset': dataset,
    'offset': offset,
    'scale': scale
}
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 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
plot_experiment_scatters Not yet run
unverified (harvested, no recorded run)
jaredleekatzman/DeepSurv/deepsurv/viz.py
code served (permissive licence) · get_code("f54b08dfda21ae02")
How it ran

no invocation 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, 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 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.

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

We present a conformal inference method for constructing lower prediction bounds for survival times from right-censored data, extending recent approaches designed for more restrictive type-I censoring scenarios. The proposed method imputes unobserved censoring times using a machine learning model, and then analyzes the imputed data using a survival model calibrated via weighted conformal inference. This approach is theoretically supported by an asymptotic double robustness property. Empirical studies on simulated and real data demonstrate that our method leads to relatively informative predictive inferences and is especially robust in challenging settings where the survival model may be inaccurate.

For agents

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

get_harvested_code_for_paper("2412.09729")
get_code_for_paper("2412.09729")
have("2412.09729")

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

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

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

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

Connect an agent — have() is free.