SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.08581 · 2019

The Brier Score under Administrative Censoring: Problems and Solutions

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 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; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 4 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/1912.08581.json · badge: /api/ran/1912.08581.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
loft-br/xgboost-survival-embeddings community (classifier label)
classifier basis not recorded on the link
6 ran · 4 no recorded run
FunctionStatusWhere it lives
check_xgboost_parameters Ran
ran on a synthesized input
loft-br/xgboost-survival-embeddings/xgbse/_feature_extractors.py
code served (permissive licence) · get_code("53d59eb8921713e0")
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 typing import Any, Dict, List, Optional, Tuple

torch.manual_seed(0)

# Test case 1: Basic valid parameters with categorical disabled
xgb_params_1 = {
    'objective': 'survival:cox'
}
enable_categorical_1 = False

# Test case 2: Valid parameters with categorical enabled
xgb_params_2 = {
    'objective': 'survival:aft',
    'tree_method': 'hist'
}
enable_categorical_2 = True

# For the actual ARGS, we'll use a simple valid case
ARGS = {
    'xgb_params': {
        'objective': 'survival:cox'
    },
    'enable_categorical': False
}
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 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
convert_data_to_xgb_format Ran
ran on a synthesized input
loft-br/xgboost-survival-embeddings/xgbse/converters.py
code served (permissive licence) · get_code("7dfeac8c842a5768")
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 DMatrix. 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 xgboost as xgb

# Create feature matrix X
X = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float32)

# Create structured array y with event indicator and time
# First field: event indicator (bool)
# Second field: time of event/censoring (float)
y = np.array(
    [(True, 10.5), (False, 20.3)],
    dtype=[('event', np.bool_), ('time', np.float32)]
)

# Define arguments dict
ARGS = {
    'X': X,
    'y': y,
    'objective': 'survival:cox',
    'enable_categorical': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, xgboost — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DMatrix — a DMatrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DMatrix 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
convert_to_structured Ran
ran on a synthesized input
loft-br/xgboost-survival-embeddings/xgbse/converters.py
code served (permissive licence) · get_code("d26026c9c19bdd6d")
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 (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
import pandas as pd

# Create pandas Series with .values attribute for T and E
T = pd.Series([1.5, 2.3, 3.1, 0.8])
E = pd.Series([1, 0, 1, 1])

ARGS = {
    'T': T,
    'E': E,
}
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 ndarray, 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
convert_y Ran
ran on a synthesized input
loft-br/xgboost-survival-embeddings/xgbse/converters.py
code served (permissive licence) · get_code("d24741fb9abd3df2")
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 2, 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 structured array with event indicator and time fields
event_indicator = np.array([True, False], dtype=np.bool_)
time_values = np.array([10.5, 20.3], dtype=np.float64)

# Create structured array with named fields
y = np.zeros(2, dtype=[('event', np.bool_), ('time', np.float64)])
y['event'] = event_indicator
y['time'] = time_values

ARGS = {
    'y': y
}
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 tuple, ndim 2, 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
get_time_bins Ran
ran on a synthesized input
loft-br/xgboost-survival-embeddings/xgbse/non_parametric.py
code served (permissive licence) · get_code("c641555a1cafd15e")
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 int, shape (12,) 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
import numpy.typing as npt

# Create synthetic time and event data
# T: array of times (numeric values)
# E: array of event indicators (boolean)

np.random.seed(0)

# Create time array with overlapping ranges for both event groups
T = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], dtype=np.float64)

# Create event array with both 0s and 1s to ensure both groups exist
E = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype=np.bool_)

ARGS = {
    "T": T,
    "E": E,
    "size": 12
}
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 int, shape (12,) — shape (12,) 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
sort_and_add_zeros Ran
ran on a synthesized input
loft-br/xgboost-survival-embeddings/xgbse/non_parametric.py
code served (permissive licence) · get_code("a05bebfafbf61bd4")
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 (2, 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 numpy as np

# Create sample numpy arrays for testing
# x: array to be sorted, shape (batch_size, n_features)
x = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]])

# ind: indices for sorting, shape (batch_size, n_features)
# These indices specify which position to take from each row
ind = np.array([[3, 1, 2, 0],
                [2, 0, 3, 1]])

ARGS = {
    "x": x,
    "ind": ind
}
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 (2, 5) — shape (2, 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
approx_brier_score Not yet run
unverified (harvested, no recorded run)
loft-br/xgboost-survival-embeddings/xgbse/metrics.py
code served (permissive licence) · get_code("6109e771b2fbc50d")
How it ran

no invocation recorded.

calculate_exp_boundary Not yet run
unverified (harvested, no recorded run)
loft-br/xgboost-survival-embeddings/xgbse/non_parametric.py
code served (permissive licence) · get_code("ab974e0e5d7b823d")
How it ran

no invocation recorded.

concordance_index Not yet run
unverified (harvested, no recorded run)
loft-br/xgboost-survival-embeddings/xgbse/metrics.py
code served (permissive licence) · get_code("4f297c0d0275886e")
How it ran

no invocation recorded.

dist_calibration_score Not yet run
unverified (harvested, no recorded run)
loft-br/xgboost-survival-embeddings/xgbse/metrics.py
code served (permissive licence) · get_code("c5f263c5e424dabd")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 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 10 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-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

The Brier score is commonly used for evaluating probability predictions. In survival analysis, with right-censored observations of the event times, this score can be weighted by the inverse probability of censoring (IPCW) to retain its original interpretation. It is common practice to estimate the censoring distribution with the Kaplan-Meier estimator, even though it assumes that the censoring distribution is independent of the covariates. This paper discusses the general impact of the censoring estimates on the Brier score and shows that the estimation of the censoring distribution can be problematic. In particular, when the censoring times can be identified from the covariates, the IPCW score is no longer valid. For administratively censored data, where the potential censoring times are known for all individuals, we propose an alternative version of the Brier score. This administrative Brier score does not require estimation of the censoring distribution and is valid even if the censoring times can be identified from the covariates.

For agents

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

get_harvested_code_for_paper("1912.08581")
get_code_for_paper("1912.08581")
have("1912.08581")

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

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

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

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

Connect an agent — have() is free.