SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.12477 · 2026

Learning Under Treatment-Induced Label Indeterminacy with Expert Annotations of Counterfactual Outcomes: A Case Study in Neurological Prognostication

George Chen, Jonathan Elmer, Xiaobin Shen, Chloe Huang

arXiv · PDF · Open in the Atlas

Code that ran

19 of 33 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 13 failures of our instrument; 14 no recorded run), measured 2026-11-23; 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/2608.12477.json · badge: /api/ran/2608.12477.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
xiaobin-xs/learning-under-label-indeterminacy community
Papers with Code archive
19 ran · 14 no recorded run
FunctionStatusWhere it lives
Dataset Ran
ran on a synthesized input · constructed an object; no result was computed
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("84af608b6dea72aa")
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 an instance of its own class, Dataset: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass

# Create a small DataFrame with all required columns
np.random.seed(0)
n_rows = 10

data = {
    'id': list(range(n_rows)),
    'feature_1': np.random.randn(n_rows),
    'feature_2': np.random.randn(n_rows),
    'feature_3': np.random.randn(n_rows),
    'recovery_label': np.array([0, 1, 0, 1, -1, -1, 0, 1, -1, 0]),
    'expert_scores': [[0.8, 0.9], [0.2, 0.3], [0.7, 0.6], [0.1, 0.2], [0.5, 0.5], [0.4, 0.6], [0.9, 0.8], [0.3, 0.4], [0.6, 0.7], [0.2, 0.1]],
    'expert_ids': [['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2']],
    'expert_scores_parsed': [[0.8, 0.9], [0.2, 0.3], [0.7, 0.6], [0.1, 0.2], [0.5, 0.5], [0.4, 0.6], [0.9, 0.8], [0.3, 0.4], [0.6, 0.7], [0.2, 0.1]],
    'expert_ids_parsed': [['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2'], ['exp_1', 'exp_2']],
    'expert_disagree_category': ['agree', 'disagree', 'agree', 'disagree', 'unclear', 'unclear', 'agree', 'disagree', 'unclear', 'agree'],
    'WLST_n': [0, 1, 0, 1, 0, 1, 0, 1, 0, 1],
}

frame = pd.DataFrame(data)

ARGS = {
    'frame': frame,
    'feature_columns': ['feature_1', 'feature_2', 'feature_3'],
    'id_column': 'id',
    'label_column': 'recovery_label',
    'expert_scores_column': 'expert_scores',
    'expert_ids_column': 'expert_ids',
    'parsed_scores_column': 'expert_scores_parsed',
    'parsed_expert_ids_column': 'expert_ids_parsed',
    'disagreement_column': 'expert_disagree_category',
    'wlst_column': 'WLST_n',
}
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 Dataset — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Dataset 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
ProbabilityInterval Ran
ran on a synthesized input · constructed an object; no result was computed
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("53835ebb58a07736")
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 an instance of its own class, ProbabilityInterval: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass

torch.manual_seed(0)

@dataclass(frozen=True)
class ProbabilityInterval:
    """Probability interval derived from the paper's 7-point scale."""
    score: int
    description: str
    lower: float
    upper: float

    def midpoint(self) -> float:
        """Return the midpoint of the interval."""
        return (self.lower + self.upper) / 2.0


ARGS = {
    "score": 5,
    "description": "Likely true",
    "lower": 0.6,
    "upper": 0.8
}
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 ProbabilityInterval — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ProbabilityInterval 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
UncertainEvaluationOutputs Ran
ran on a synthesized input · constructed an object; no result was computed
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("8663cc6061a0e317")
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 an instance of its own class, UncertainEvaluationOutputs: the run constructed the object and did not call it, so no result was computed. 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 pandas as pd
import numpy as np

torch.manual_seed(0)

# Create sample DataFrames for UncertainEvaluationOutputs
enriched_predictions = pd.DataFrame({
    'prediction': [0.8, 0.3, 0.6, 0.9],
    'uncertainty': [0.1, 0.2, 0.15, 0.05],
    'label': [1, 0, 1, 1],
    'group': ['A', 'B', 'A', 'B']
})

overall_summary = pd.DataFrame({
    'metric': ['accuracy', 'precision', 'recall', 'f1'],
    'value': [0.85, 0.88, 0.82, 0.85]
})

group_summary = pd.DataFrame({
    'group': ['A', 'B'],
    'accuracy': [0.87, 0.83],
    'precision': [0.90, 0.86],
    'recall': [0.84, 0.80]
})

conflict_detection = pd.DataFrame({
    'sample_id': [0, 2, 5, 7],
    'conflict_score': [0.3, 0.5, 0.2, 0.6],
    'status': ['low', 'high', 'low', 'high']
})

ARGS = {
    'enriched_predictions': enriched_predictions,
    'overall_summary': overall_summary,
    'group_summary': group_summary,
    'conflict_detection': conflict_detection
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type UncertainEvaluationOutputs — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a UncertainEvaluationOutputs 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
UncertaintySignalSpec Ran
ran on a synthesized input · constructed an object; no result was computed
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("34ea515b6dd4100f")
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 an instance of its own class, UncertaintySignalSpec: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass

@dataclass(frozen=True)
class UncertaintySignalSpec:
    """Metadata for one model-side uncertainty-style signal column."""
    column: str
    larger_is_more_uncertain: bool
    baseline_family: str | None = None
    include_in_conflict_detection: bool = True

torch.manual_seed(0)

ARGS = {
    "column": "uncertainty_score",
    "larger_is_more_uncertain": True,
    "baseline_family": "gaussian",
    "include_in_conflict_detection": True,
}
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 UncertaintySignalSpec — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a UncertaintySignalSpec 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
_build_overall_summary Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("d3d4ccd299025786")
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 math
import pandas as pd
import numpy as np

# Create a sample enriched_predictions DataFrame with all required columns
np.random.seed(0)
n_rows = 10

enriched_predictions = pd.DataFrame({
    'baseline': ['model_a'] * 5 + ['model_b'] * 5,
    'predicted_score': np.random.uniform(0, 1, n_rows),
    'expert_mean': np.random.uniform(0, 1, n_rows),
    'expert_median': np.random.uniform(0, 1, n_rows),
    'expert_min': np.random.uniform(0, 0.5, n_rows),
    'expert_max': np.random.uniform(0.5, 1, n_rows),
    'expert_conflict': np.random.randint(0, 2, n_rows),
})

ARGS = {
    'enriched_predictions': enriched_predictions,
    'threshold': 0.01,
}
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
_resolve_baseline_family Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("bee5d063b70a432f")
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 pandas as pd
from dataclasses import dataclass

# Define the UNCERTAINTY_SIGNAL_SPECS that the function references
@dataclass
class UncertaintySignalSpec:
    baseline_family: str
    column: str

UNCERTAINTY_SIGNAL_SPECS = [
    UncertaintySignalSpec(baseline_family='multitask_mlp', column='uncertainty_mlp'),
    UncertaintySignalSpec(baseline_family='random_forest', column='uncertainty_rf'),
    UncertaintySignalSpec(baseline_family='multitask_mlp', column='other_mlp_col'),
]

# Construct test data
frame = pd.DataFrame({
    'uncertainty_mlp': [1.0, 2.0, 3.0],
    'uncertainty_rf': [0.5, 0.6, 0.7],
    'other_col': [None, None, None],
})

baseline = 'model_1'
baseline_families = {'model_1': 'custom_family', 'model_2': 'another_family'}

ARGS = {
    'baseline': baseline,
    'frame': frame,
    'baseline_families': baseline_families,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
_safe_auprc Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("ccd178b7c7c7ad01")
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 float, ndim 0, dtype family float, shape () 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 math
import pandas as pd
from sklearn.metrics import average_precision_score, roc_auc_score

# Create sample data for y_true and score
y_true = pd.Series([0, 1, 0, 1, 1, 0])
score = pd.Series([0.1, 0.9, 0.2, 0.8, 0.95, 0.3])

ARGS = {
    "y_true": y_true,
    "score": score,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () 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
_safe_auroc Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("55a2b3235c7209b9")
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 float, ndim 0, dtype family float, shape () 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 math
import pandas as pd
import numpy as np

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

# Create test data for _safe_auroc
# y_true: binary labels (0 and 1 to ensure both classes are present)
y_true = pd.Series([0, 1, 0, 1, 0, 1, 1, 0])

# score: prediction scores/probabilities
score = pd.Series([0.1, 0.9, 0.2, 0.8, 0.3, 0.7, 0.85, 0.15])

ARGS = {
    "y_true": y_true,
    "score": score,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () 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
_safe_fraction Ran
ran, honoured the contract we drafted
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("748c2dc270d62e67")
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 float, ndim 0, dtype family float, shape () 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 pandas as pd
import math

# Create a pandas Series with some boolean/float values
series = pd.Series([True, False, True, None, True, False])

ARGS = {
    "series": series
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () 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
_safe_iqr Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("10bcd380702646e6")
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 float, ndim 0, dtype family float, shape () 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 math
import pandas as pd
import numpy as np

# Create a simple pd.Series with numeric values for testing
series = pd.Series([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0])

ARGS = {
    "series": series
}
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 float, ndim 0, dtype family float, shape () — shape () 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
_safe_median Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("e4b30bbc6f7bc657")
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 float, ndim 0, dtype family float, shape () 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 math
import pandas as pd
import numpy as np

# Create a simple pandas Series with some numeric values and NaN
series_data = pd.Series([1.0, 2.0, 3.0, np.nan, 5.0, np.nan])

ARGS = {
    "series": series_data
}
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 float, ndim 0, dtype family float, shape () — shape () 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
_safe_spearman Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("c024bf7c27da0bf4")
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 float, ndim 0, dtype family float, shape () 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 math
import pandas as pd
import numpy as np

# Create sample data for the function
left_data = pd.Series([1.0, 2.0, 3.0, 4.0, 5.0])
right_data = pd.Series([2.0, 4.0, 5.0, 4.0, 6.0])

ARGS = {
    'left': left_data,
    'right': right_data
}
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 float, ndim 0, dtype family float, shape () — shape () 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
_signal_is_eligible_for_baseline Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("5d9a8124c38aefa5")
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 bool, ndim 0, dtype family float, shape () 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 pandas as pd
from dataclasses import dataclass

@dataclass(frozen=True)
class UncertaintySignalSpec:
    """Metadata for one model-side uncertainty-style signal column."""
    column: str
    larger_is_more_uncertain: bool
    baseline_family: str | None = None
    include_in_conflict_detection: bool = True

# Create a sample DataFrame with some columns
frame = pd.DataFrame({
    'uncertainty_signal': [0.1, 0.2, 0.3],
    'other_column': [1, 2, 3]
})

# Create a spec instance
spec = UncertaintySignalSpec(
    column='uncertainty_signal',
    larger_is_more_uncertain=True,
    baseline_family='family_a',
    include_in_conflict_detection=True
)

# Define arguments for the function
ARGS = {
    'spec': spec,
    'baseline_family': 'family_a',
    'frame': frame
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
_summarize_uncertain_subset Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("a4ffe51c1c43a222")
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 pandas as pd
import numpy as np

# Create a small DataFrame with the required columns
np.random.seed(0)
n_rows = 10

frame = pd.DataFrame({
    'predicted_score': np.random.uniform(0, 1, n_rows),
    'expert_mean': np.random.uniform(0, 1, n_rows),
    'expert_median': np.random.uniform(0, 1, n_rows),
    'expert_min': np.random.uniform(0, 0.5, n_rows),
    'expert_max': np.random.uniform(0.5, 1, n_rows),
    'expert_conflict': np.random.randint(0, 2, n_rows),
})

ARGS = {
    'frame': frame,
    'baseline': 'baseline_model_v1',
    'expert_group': 'A',
    'threshold': 0.01,
}
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 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
_top_fraction_conflict_rate Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("ec97d71bac3cf16a")
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 float, ndim 0, dtype family float, shape () 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 pandas as pd
import numpy as np

# Create sample data for the function
uncertainty_scores = pd.Series([0.9, 0.7, 0.5, 0.3, 0.1, 0.8, 0.6, 0.4])
y_true = pd.Series([1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 0.0, 1.0])

ARGS = {
    'uncertainty_score': uncertainty_scores,
    'y_true': y_true,
    'fraction': 0.5
}
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 float, ndim 0, dtype family float, shape () — shape () 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
_top_fraction_conflict_recall Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("e950b03f28761cf8")
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 float, ndim 0, dtype family float, shape () 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 math
import pandas as pd
import numpy as np

# Create sample data for the function
uncertainty_scores = pd.Series([0.9, 0.7, 0.5, 0.3, 0.1, 0.8], dtype=float)
y_true_conflicts = pd.Series([1, 0, 1, 1, 0, 1], dtype=float)

ARGS = {
    'uncertainty_score': uncertainty_scores,
    'y_true': y_true_conflicts,
    'fraction': 0.5
}
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 float, ndim 0, dtype family float, shape () — shape () 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
aggregate_probabilities Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("4854c5722e6548bf")
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 float, ndim 0, dtype family float, shape () 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 torch
import numpy as np
from statistics import fmean, median

torch.manual_seed(0)

# Test case 1: basic mean aggregation
probabilities_1 = [0.2, 0.5, 0.8, 0.9]
aggregation_1 = 'mean'

# Test case 2: median aggregation
probabilities_2 = [0.1, 0.3, 0.7]
aggregation_2 = 'median'

# Test case 3: min aggregation
probabilities_3 = [0.15, 0.45, 0.95]
aggregation_3 = 'min'

# Test case 4: max aggregation
probabilities_4 = [0.05, 0.55, 0.75]
aggregation_4 = 'max'

# Test case 5: empty list
probabilities_5 = []
aggregation_5 = 'mean'

# Using the first test case as the primary ARGS
ARGS = {
    'probabilities': [0.2, 0.5, 0.8, 0.9],
    'aggregation': 'mean'
}
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 float, ndim 0, dtype family float, shape () — shape () 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
probabilities_to_disagreement_category Ran
ran; our contract draft was wrong, not the code
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("80a4ed630e3ced17")
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 int, ndim 0, dtype family int, shape () 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 torch
import numpy as np
from typing import Iterable

# Test case 1: All probabilities at or below threshold (should return 1)
probabilities_case1 = [0.005, 0.008, 0.01]

# Test case 2: All probabilities above threshold (should return 2)
probabilities_case2 = [0.02, 0.05, 0.1]

# Test case 3: Mixed probabilities (should return 3)
probabilities_case3 = [0.005, 0.05, 0.01]

# Use case 2 as the primary test case
ARGS = {
    "probabilities": probabilities_case2,
    "threshold": 0.01
}
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 int, ndim 0, dtype family int, shape () — shape () 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
validate_score_6_cap Ran
ran, honoured the contract we drafted
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("d7f2089b77f86f4e")
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 float, ndim 0, dtype family float, shape () 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 torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "score_6_cap": 0.75
}
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 float, ndim 0, dtype family float, shape () — shape () 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
_build_conflict_detection_summary Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("b67989e5323c88cd")
How it ran

no invocation recorded.

_build_group_summary Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("6a9b276b594d7c36")
How it ran

no invocation recorded.

_validate_uncertain_prediction_keys Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("77f48f2cf7fd5b00")
How it ran

no invocation recorded.

build_expert_reference_table Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("dd02ac0a15cf727e")
How it ran

no invocation recorded.

disagreement_category_to_group Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("cd0e93748fdb396b")
How it ran

no invocation recorded.

evaluate_uncertain_predictions Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("091c68ad2ebfd796")
How it ran

no invocation recorded.

get_probability_interval Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("eaae070bd3d3fcb4")
How it ran

no invocation recorded.

score_is_on_or_above_1pct_side Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("3a72cd1f72a800d3")
How it ran

no invocation recorded.

score_to_probability Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("d21ab5d69e26765c")
How it ran

no invocation recorded.

scores_to_aggregated_probability Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("2d97efeb4334e823")
How it ran

no invocation recorded.

scores_to_disagreement_category Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("52420d1c582d9003")
How it ran

no invocation recorded.

scores_to_probabilities Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("a099e7fbbde96d8b")
How it ran

no invocation recorded.

scores_to_threshold_side_indicators Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("b2b13d9da5ffb56d")
How it ran

no invocation recorded.

scores_to_threshold_soft_target Not yet run
unverified (harvested, no recorded run)
xiaobin-xs/learning-under-label-indeterminacy/src/evaluation/uncertain.py
code served (permissive licence) · get_code("5aef00475f9bf162")
How it ran

no invocation recorded.

Also present in other papers' code

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

Clinical prediction models are often developed as if the outcome of interest were cleanly observed for every patient. This assumption fails when treatment decisions make the clinically relevant outcome permanently unobservable. As a case study of this problem, we consider post-cardiac-arrest neurological prognostication using a cohort of 2,497 patients, including 1,429 patients whose outcomes were rendered indeterminate by treatment decisions (e.g., withdrawing or limiting life-sustaining therapies, which immediately led to death, so we do not know what would have happened otherwise). These patients with indeterminate outcomes were reviewed by independent clinical experts, who provided their guesses of counterfactual outcomes about what would have happened to the patients. We refer to these patients as uncertain cases. We also have patients for whom we observe their clinically relevant outcomes (e.g., regaining consciousness); we refer to these patients as certain cases. We propose a framework for evaluating prediction models that explicitly splits the evaluation between certain and uncertain cases. Here, we cannot easily evaluate both types of cases in a uniform manner as the available target labels differ (we have known outcomes for certain cases, and guesses of counterfactual outcomes for uncertain cases). We then propose a simple prediction model that uses target labels from both certain and uncertain cases in a manner that allows us to trade off between them. Across the proposed neural model and a collection of tabular baselines, models with similar certain-case AUROC can nevertheless differ substantially in both certain-case Brier score and their probability estimates for uncertain cases. Improving alignment with target labels of uncertain cases for our proposed model generally comes at the cost of worse accuracy on certain cases, highlighting an explicit tradeoff that standard evaluation (focusing only on certain cases) conceals. These results show that when treatment decisions determine whether clinically meaningful outcomes remain observable, conventional evaluation metrics can miss important failure modes in the very patients for whom prognostic support matters most. Code is available at https://github.com/xiaobin-xs/learning-under-label-indeterminacy.

For agents

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

get_harvested_code_for_paper("2608.12477")
get_code_for_paper("2608.12477")
have("2608.12477")

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

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

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

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

Connect an agent — have() is free.