SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.15488 · 2026

SurvivalPFN: Amortizing Survival Prediction via In-Context Bayesian Inference

Russell Greiner, Rahul Krishnan, Shi-Ang Qi, Michael Cooper, Vahid Balazadeh

arXiv · PDF · Open in the Atlas

Code that ran

44 of 60 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (12 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 18 have no contract verdict; 25 failures of our instrument; 16 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/2605.15488.json · badge: /api/ran/2605.15488.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
TeaPearce/Censored_Quantile_Regression_NN canonical (classifier label)
classifier basis: census
7 ran · 5 no recorded run
rgklab/SurvivalPFN community
Papers with Code archive
15 ran · 5 no recorded run
XintianHan/Survival-MDN community
Papers with Code archive
7 ran · 1 no recorded run
MrHuff/Sumo-Net community
Papers with Code archive
7 ran · 1 no recorded run
shi-ang/BNN-ISD community
Papers with Code archive
5 ran · 4 no recorded run
rajesh-lab/Inverse-Weighted-Survival-Games community
Papers with Code archive
3 ran · 0 no recorded run
FunctionStatusWhere it lives
BayesianElementwiseLinear Ran
ran on a synthesized input
shi-ang/BNN-ISD/models.py
code served (permissive licence) · get_code("1ee39ab309964a90")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 2, 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 torch
import torch.nn as nn
import argparse
import numpy as np
import math

class ParametrizedGaussian(object):

    def __init__(self, mu, rho):
        super().__init__()
        self.mu = mu
        self.rho = rho
        self.normal = torch.distributions.Normal(0, 1)
        self.constant = (1 + math.log(2 * math.pi)) / 2

    @property
    def sigma(self):
        return torch.log1p(torch.exp(self.rho))

    def sample(self, n_samples=1):
        epsilon = self.normal.sample(sample_shape=(n_samples, *self.rho.size()))
        epsilon = epsilon.to(self.mu.device)
        return self.mu + self.sigma * epsilon

    def log_prob(self, x):
        return (-math.log(math.sqrt(2 * math.pi)) - torch.log(self.sigma) - (x - self.mu) ** 2 / (2 * self.sigma ** 2)).sum()

    def entropy(self):
        """
        Computes the entropy of the Diagonal Gaussian distribution.
        Details on the computation can be found in
        https://math.stackexchange.com/questions/2029707/entropy-of-the-multivariate-gaussian
        """
        part1 = torch.sum(torch.log(self.sigma))
        part2 = self.mu.numel() * self.constant
        return part1 + part2

class ScaleMixtureGaussian(object):

    def __init__(self, pi, sigma1, sigma2):
        super().__init__()
        if pi > 1 or pi < 0:
            raise ValueError(f'pi must be in the range of (0, 1). Got {pi} instead')
        self.pi = pi
        self.sigma1 = sigma1
        self.sigma2 = sigma2
        self.gaussian1 = torch.distributions.Normal(0, sigma1)
        self.gaussian2 = torch.distributions.Normal(0, sigma2)

    def log_prob(self, x):
        prob1 = torch.exp(self.gaussian1.log_prob(x))
        prob2 = torch.exp(self.gaussian2.log_prob(x))
        return torch.log(self.pi * prob1 + (1 - self.pi) * prob2).sum()

class BayesianElementwiseLinear(nn.Module):
    """
    Single elementwise linear layer of a mixture gaussian prior.
    """

    def __init__(self, input_output_size: int, config: argparse.Namespace):
        """
        Initialize gaussian layer using reparameterization.

        :param input_output_size: number of input features
        :param config: hyperparameters
        """
        super().__init__()
        self.input_output_size = input_output_size
        self.config = config
        if self.config.mu_scale is None:
            self.config.mu_scale = 1.0 * np.sqrt(6.0 / input_output_size)
        self.weight_mu = nn.init.uniform_(nn.Parameter(torch.Tensor(input_output_size)), -self.config.mu_scale, self.config.mu_scale)
        self.weight_rho = nn.Parameter(torch.ones([input_output_size]) * self.config.rho_scale)
        self.weight = ParametrizedGaussian(self.weight_mu, self.weight_rho)
        self.weight_prior = ScaleMixtureGaussian(config.pi, config.sigma1, config.sigma2)
        self.log_prior = 0
        self.log_variational_posterior = 0

    def forward(self, x: torch.tensor, sample: bool=True, n_samples: int=1):
        if self.training or sample:
            weight = self.weight.sample(n_samples=n_samples)
        else:
            print('No sampling')
            weight = self.weight.mu.expand(n_samples, -1, -1)
        if self.training:
            self.log_prior = self.weight_prior.log_prob(weight)
            self.log_variational_posterior = self.weight.log_prob(weight)
        else:
            self.log_prior, self.log_variational_posterior = (0, 0)
        weight = torch.einsum('bj, jk->bjk', weight, torch.eye(weight.shape[1], dtype=weight.dtype, device=weight.device))
        x = x.expand(n_samples, -1, -1)
        return torch.einsum('bij,bjk->bik', x, weight)

    def reset_parameters(self):
        """Reinitialize parameters"""
        nn.init.uniform_(self.weight_mu, -self.config.mu_scale, self.config.mu_scale)
        nn.init.constant_(self.weight_rho, self.config.rho_scale)
        self.weight = ParametrizedGaussian(self.weight_mu, self.weight_rho)


config = argparse.Namespace(
    mu_scale=None,
    rho_scale=0.1,
    pi=0.5,
    sigma1=1.0,
    sigma2=0.1
)

INIT_ARGS = {
    'input_output_size': 4,
    'config': config
}

ARGS = {
    'x': torch.randn(2, 4),
    'sample': True,
    'n_samples': 2
}

layer = BayesianElementwiseLinear(**INIT_ARGS)
layer.train()
output = layer(**ARGS)
print(f"Output shape: {output.shape}")
print(f"Log prior: {layer.log_prior}")
print(f"Log variational posterior: {layer.log_variational_posterior}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 2, 4) — shape (2, 2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
CatNN Ran
ran on a synthesized input · constructed an object; no result was computed
rajesh-lab/Inverse-Weighted-Survival-Games/models.py
code served (permissive licence) · get_code("71503a80d54879f4")
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, CatNN: 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 torch.nn as nn

torch.manual_seed(0)

class Args:
    def __init__(self):
        self.dataset = 'gamma'
        self.D_in = 4
        self.K = 3
        self.dropout_rate = 0.1
        self.kminusone = 1
        self.realsets = ['real1', 'real2']

args = Args()

ARGS = {
    'args': args
}
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 CatNN — 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 CatNN 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
DeepNet Ran
ran on a synthesized input · constructed an object; no result was computed
rajesh-lab/Inverse-Weighted-Survival-Games/models.py
code served (permissive licence) · get_code("d2af976346d33920")
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, DeepNet: 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "D_in": 4,
    "D_out": 3,
    "HS": [8, 6, 5],
    "dropout_rate": 0.2,
    "bn": 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 DeepNet — 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 DeepNet 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
DefaultNN Ran
ran on a synthesized input · constructed an object; no result was computed
XintianHan/Survival-MDN/mdn_models.py
pointer only (licence: NONE) · get_code("d4a12e293a55de4d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, XintianHan/Survival-MDN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Log1PlusExp Ran
ran on a synthesized input · constructed an object; no result was computed
MrHuff/Sumo-Net/nets/nets.py
pointer only (licence: NONE) · get_code("6ac98a7b55346d72")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrHuff/Sumo-Net when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MukundMDNHelper Ran
ran on a synthesized input · constructed an object; no result was computed
XintianHan/Survival-MDN/mdn_models.py
pointer only (licence: NONE) · get_code("cc4efa299e31dcf9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, XintianHan/Survival-MDN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ParametrizedGaussian Ran
ran on a synthesized input
shi-ang/BNN-ISD/models.py
code served (permissive licence) · get_code("8b0392475ca0039a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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 math

class ParametrizedGaussian(object):

    def __init__(self, mu, rho):
        super().__init__()
        self.mu = mu
        self.rho = rho
        self.normal = torch.distributions.Normal(0, 1)
        self.constant = (1 + math.log(2 * math.pi)) / 2

    @property
    def sigma(self):
        return torch.log1p(torch.exp(self.rho))

    def sample(self, n_samples=1):
        epsilon = self.normal.sample(sample_shape=(n_samples, *self.rho.size()))
        epsilon = epsilon.to(self.mu.device)
        return self.mu + self.sigma * epsilon

    def log_prob(self, x):
        return (-math.log(math.sqrt(2 * math.pi)) - torch.log(self.sigma) - (x - self.mu) ** 2 / (2 * self.sigma ** 2)).sum()

    def entropy(self):
        """
        Computes the entropy of the Diagonal Gaussian distribution.
        Details on the computation can be found in
        https://math.stackexchange.com/questions/2029707/entropy-of-the-multivariate-gaussian
        """
        part1 = torch.sum(torch.log(self.sigma))
        part2 = self.mu.numel() * self.constant
        return part1 + part2


INIT_ARGS = {
    'mu': torch.randn(4, 3),
    'rho': torch.randn(4, 3)
}

ARGS = {
    'x': torch.randn(4, 3)
}

METHOD = 'log_prob'

if __name__ == '__main__':
    pg = ParametrizedGaussian(**INIT_ARGS)
    result = getattr(pg, METHOD)(**ARGS)
    print(f"Result: {result}")
    print(f"Entropy: {pg.entropy()}")
    print(f"Sample: {pg.sample(n_samples=2)}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
RELU Ran
ran; our contract draft was wrong, not the code
rajesh-lab/Inverse-Weighted-Survival-Games/models.py
code served (permissive licence) · get_code("e885556b912e32f3")
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 Tensor, ndim 2, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

# RELU takes a single argument x which must be a tensor
# The function calls x.relu() on it, so x must be a torch.Tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
RMSNorm Ran
ran on a synthesized input
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("6e57086fc97463e2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float, shape (2, 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 torch
import torch.nn as nn

EPSILON_STABILITY = 1e-20

class RMSNorm(torch.nn.Module):

    def __init__(self, dim: int, eps: float=EPSILON_STABILITY):
        super().__init__()
        self.eps = eps
        self.weight = nn.Parameter(torch.ones(dim))

    def _norm(self, x):
        return x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + self.eps)

    def forward(self, x):
        output = self._norm(x.float()).type_as(x)
        return output * self.weight


INIT_ARGS = {
    'dim': 4,
    'eps': EPSILON_STABILITY,
}

ARGS = {
    'x': torch.randn(2, 4),
}

if __name__ == '__main__':
    model = RMSNorm(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ResidualNN Ran
ran on a synthesized input · constructed an object; no result was computed
XintianHan/Survival-MDN/mdn_models.py
pointer only (licence: NONE) · get_code("117bdea53b8347f8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, XintianHan/Survival-MDN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ScaleMixtureGaussian Ran
ran on a synthesized input
shi-ang/BNN-ISD/models.py
code served (permissive licence) · get_code("6262e3d94f88a8c7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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

class ScaleMixtureGaussian(object):

    def __init__(self, pi, sigma1, sigma2):
        super().__init__()
        if pi > 1 or pi < 0:
            raise ValueError(f'pi must be in the range of (0, 1). Got {pi} instead')
        self.pi = pi
        self.sigma1 = sigma1
        self.sigma2 = sigma2
        self.gaussian1 = torch.distributions.Normal(0, sigma1)
        self.gaussian2 = torch.distributions.Normal(0, sigma2)

    def log_prob(self, x):
        prob1 = torch.exp(self.gaussian1.log_prob(x))
        prob2 = torch.exp(self.gaussian2.log_prob(x))
        return torch.log(self.pi * prob1 + (1 - self.pi) * prob2).sum()


INIT_ARGS = {
    'pi': 0.5,
    'sigma1': 1.0,
    'sigma2': 2.0,
}

ARGS = {
    'x': torch.randn(4),
}

METHOD = 'log_prob'

if __name__ == '__main__':
    smg = ScaleMixtureGaussian(**INIT_ARGS)
    result = smg.log_prob(**ARGS)
    print(f"Result: {result}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
SurvivalMDN_Dist Ran
ran on a synthesized input · constructed an object; no result was computed
XintianHan/Survival-MDN/mdn_models.py
pointer only (licence: NONE) · get_code("df060b1e443def88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, XintianHan/Survival-MDN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

TabDPTLongContextModel Ran
ran on a synthesized input
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("e6ff2912fc572ac0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, 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 torch.nn as nn
import numpy as np

# INIT_ARGS for TabDPTLongContextModel.__init__
INIT_ARGS = {
    'dropout': 0.1,
    'n_out': 1,
    'nhead': 2,
    'nhid': 8,
    'ninp': 4,
    'nlayers': 2,
    'num_features': 3,
    'nbins': 5
}

# ARGS for TabDPTLongContextModel.forward
# x_src shape: (seq_len, batch, num_features)
# y_src shape: (context_length, batch)
seq_len = 10
context_length = 6
batch = 2
num_features = INIT_ARGS['num_features']

x_src = torch.randn(seq_len, batch, num_features)
y_src = torch.randn(context_length, batch)

ARGS = {
    'x_src': x_src,
    'y_src': y_src,
    'return_log_act_norms': False
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
TransformerEncoderLayer Ran
ran on a synthesized input
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("79a4260cd65e423b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (5, 2, 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 torch
import torch.nn as nn
import math
import torch.nn.functional as F

EPSILON_STABILITY = 1e-20

class RMSNorm(torch.nn.Module):

    def __init__(self, dim: int, eps: float=EPSILON_STABILITY):
        super().__init__()
        self.eps = eps
        self.weight = nn.Parameter(torch.ones(dim))

    def _norm(self, x):
        return x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + self.eps)

    def forward(self, x):
        output = self._norm(x.float()).type_as(x)
        return output * self.weight

class TransformerEncoderLayer(nn.Module):

    def __init__(self, embed_dim, num_heads, ff_dim):
        super().__init__()
        self.embed_dim = embed_dim
        self.head_dim = embed_dim // num_heads
        self.num_heads = num_heads
        self.kv_proj = nn.Linear(embed_dim, 2 * embed_dim, bias=False)
        self.q_proj = nn.Linear(embed_dim, 3 * embed_dim, bias=False)
        self.out_proj = nn.Linear(embed_dim, embed_dim, bias=False)

        def norm(x):
            return RMSNorm(x)
        self.attn_norm = norm(embed_dim)
        self.ff_norm = norm(embed_dim)
        self.q_norm = norm(self.head_dim)
        self.k_norm = norm(self.head_dim)

    def forward(self, x, context_length):
        x = x.transpose(0, 1)
        B, L, _ = x.size()
        h = self.attn_norm(x)
        q, ff_h, ff_gate = self.q_proj(h).chunk(3, dim=-1)
        k, v = self.kv_proj(h[:, :context_length]).chunk(2, dim=-1)
        q = q.view(B, L, self.num_heads, self.head_dim).transpose(1, 2)
        k = k.view(B, context_length, self.num_heads, self.head_dim).transpose(1, 2)
        v = v.view(B, context_length, self.num_heads, self.head_dim).transpose(1, 2)
        q, k = (self.q_norm(q), self.k_norm(k))
        q = q * math.log2(context_length) / 10
        q = self.q_norm(q).to(v.dtype)
        k = self.k_norm(k).to(v.dtype)
        attn = F.scaled_dot_product_attention(q, k, v).transpose(1, 2)
        attn = attn.reshape(B, L, self.num_heads * self.head_dim)
        ff_x = ff_h * F.silu(ff_gate)
        residual = self.ff_norm(self.out_proj(attn + ff_x))
        x_out = x + residual
        return x_out.transpose(0, 1)

INIT_ARGS = {
    'embed_dim': 4,
    'num_heads': 2,
    'ff_dim': 8,
}

ARGS = {
    'x': torch.randn(5, 2, 4),
    'context_length': 3,
}

if __name__ == '__main__':
    model = TransformerEncoderLayer(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: (5, 2, 4)")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (5, 2, 4) — shape (5, 2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
_extract_tabdpt_state Ran
ran; our contract draft was wrong, not the code
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("bf7653a9f1fb1def")
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) 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 torch.nn as nn

torch.manual_seed(0)

# The function takes a model_state dict and processes it
# It removes '_orig_mod.' prefixes, optionally removes 'model.' prefixes,
# and filters out specific keys like 'bin_edges', 'bin_width', 'bin_centers'

# Create a sample model_state dict with various key patterns
model_state = {
    '_orig_mod.layer1.weight': torch.randn(4, 3),
    '_orig_mod.layer1.bias': torch.randn(4),
    'model.layer2.weight': torch.randn(5, 4),
    'model.layer2.bias': torch.randn(5),
    'model.bin_edges': torch.randn(10),
    'model.bin_width': torch.tensor(0.1),
    'model.bin_centers': torch.randn(9),
    'other_param': torch.randn(2, 3),
}

ARGS = {
    'model_state': model_state
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
_interp1d_per_batch Ran
ran; our contract draft was wrong, not the code
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("f2685b774233c516")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 3) 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

torch.manual_seed(0)

# Construct valid arguments for _interp1d_per_batch
# x: Tensor of shape (B, K), monotonically increasing along K
# y: Tensor of shape (B, K), values at each x-grid point
# xnew: Tensor of shape (B, M), query points

B = 2  # batch size
K = 4  # number of grid points
M = 3  # number of query points

# Create x with monotonically increasing values along K dimension
x = torch.tensor([
    [0.0, 1.0, 2.0, 3.0],
    [0.5, 1.5, 2.5, 3.5]
], dtype=torch.float32)

# Create y values at each x-grid point
y = torch.tensor([
    [0.0, 2.0, 4.0, 6.0],
    [1.0, 3.0, 5.0, 7.0]
], dtype=torch.float32)

# Create xnew query points (should be within or near the range of x)
xnew = torch.tensor([
    [0.5, 1.5, 2.5],
    [1.0, 2.0, 3.0]
], dtype=torch.float32)

ARGS = {
    'x': x,
    'y': y,
    'xnew': xnew
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
_normalize_model_config Ran
ran; our contract draft was wrong, not the code
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("81c0a825b4d40699")
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
from copy import deepcopy

torch.manual_seed(0)

# Create a minimal model_config dict
model_config = {
    'sigma': 0.3,
    'query_strategy': 'single',
}

# Create a minimal model_state dict with bin_edges tensor
bin_edges_tensor = torch.tensor([0.1, 0.5, 1.0, 2.0])
model_state = {
    'bin_edges': bin_edges_tensor
}

ARGS = {
    'model_config': model_config,
    'model_state': model_state,
}
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
_to_plain_dict Ran
ran; our contract draft was wrong, not the code
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("e8d7a676dce6291c")
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) 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 OmegaConf

# Test case 1: OmegaConf config object
config = OmegaConf.create({
    "model": "bert",
    "learning_rate": 0.001,
    "nested": {
        "batch_size": 32,
        "epochs": 10
    }
})

# Test case 2: Plain dict with nested structure
plain_dict = {
    "key1": "value1",
    "key2": 42,
    "nested_dict": {
        "inner_key": "inner_value",
        "inner_num": 3.14
    }
}

# Test case 3: Simple value (string)
simple_value = "test_string"

# Test case 4: Simple value (number)
simple_number = 123

# Test case 5: Simple value (list)
simple_list = [1, 2, 3, 4]

ARGS = {
    "value": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
bounded_nn_layer Ran
ran on a synthesized input · constructed an object; no result was computed
MrHuff/Sumo-Net/nets/nets.py
pointer only (licence: NONE) · get_code("36fd86c93cbf07b1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrHuff/Sumo-Net when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

bounded_nn_layer_last Ran
ran on a synthesized input · constructed an object; no result was computed
MrHuff/Sumo-Net/nets/nets.py
pointer only (licence: NONE) · get_code("2c955554f710ace9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrHuff/Sumo-Net when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

crossing_loss Ran
ran; our contract draft was wrong, not the code
TeaPearce/Censored_Quantile_Regression_NN/01_code/models.py
code served (permissive licence) · get_code("8e4732a23c130baf")
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) and returned Tensor, 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

torch.manual_seed(0)

# y_pred is indexed as y_pred[:, 1:-1] and y_pred[:, :-2]
# This means it's a 2D tensor with shape (batch_size, sequence_length)
# We need at least 3 columns to make slicing [1:-1] and [:-2] work meaningfully
# batch_size=2, sequence_length=4 to have distinct dimensions

y_pred = torch.randn(2, 4)

ARGS = {
    "y_pred": y_pred
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, 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
forward_KL_hl_gaussian_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("ad486c6c60a80926")
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) and returned Tensor, ndim 1, dtype family float, shape (2,) 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 math

torch.manual_seed(0)

# Create small tensors for testing
batch_size = 2
nbins = 4

# logits: shape (batch_size, nbins) - predicted distribution logits
logits = torch.randn(batch_size, nbins)

# y_target: shape (batch_size,) - target values
y_target = torch.tensor([0.5, 1.5], dtype=torch.float32)

# bin_edges: shape (nbins,) - edges of bins
# Create evenly spaced bin edges from vmin to vmax
vmin = 0.0
vmax = 2.0
bin_edges = torch.linspace(vmin, vmax, nbins)

# sigma: standard deviation for Gaussian smoothing
sigma = 0.1

ARGS = {
    "logits": logits,
    "y_target": y_target,
    "bin_edges": bin_edges,
    "sigma": sigma,
    "vmin": vmin,
    "vmax": vmax,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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
forward_KL_one_hot_loss Ran
ran; our contract draft was wrong, not the code
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("aeaeecb3de18bd0f")
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) and returned Tensor, ndim 1, dtype family float, shape (2,) 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 torch.nn.functional as F

torch.manual_seed(0)

# Parameters for forward_KL_one_hot_loss
batch_size = 2
nbins = 5

# Create bin_centers: shape (nbins - 1,) = (4,)
bin_centers = torch.linspace(0.0, 4.0, nbins - 1)

# Create logits: shape (batch_size, nbins) = (2, 5)
logits = torch.randn(batch_size, nbins)

# Create y_target: shape (batch_size,) = (2,)
# Values should be within [vmin, vmax] range
vmin = 0.0
vmax = 4.0
y_target = torch.tensor([1.5, 3.2])

ARGS = {
    "logits": logits,
    "y_target": y_target,
    "bin_centers": bin_centers,
    "vmin": vmin,
    "vmax": vmax,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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_data_realtarget_synthcen Ran
ran; our contract draft was wrong, not the code
TeaPearce/Censored_Quantile_Regression_NN/01_code/datasets.py
code served (permissive licence) · get_code("f2f5f953aec88c7d")
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. 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

torch.manual_seed(0)

class MyDataset:
    def get_data(self, test_proportion, rand_in):
        # Returns: x_train, x_test, y_target_train, y_target_test, cen_train, cen_test_cens
        n_train = 8
        n_test = 2
        n_features = 4
        
        x_train = torch.randn(n_train, n_features)
        x_test = torch.randn(n_test, n_features)
        y_target_train = torch.randn(n_train, 1)
        y_target_test = torch.randn(n_test, 1)
        cen_train = torch.randn(n_train, 1)
        cen_test_cens = torch.randn(n_test, 1)
        
        return x_train, x_test, y_target_train, y_target_test, cen_train, cen_test_cens
    
    def process_censor_observe(self, y_target, cen):
        # Returns: y, cen_indicator, obs_indicator
        # y should be modified based on censoring
        y = torch.where(y_target < cen, y_target, cen)
        cen_indicator = (y_target >= cen).float()
        obs_indicator = (y_target < cen).float()
        
        return y, cen_indicator, obs_indicator

mydataset = MyDataset()
test_proportion = 0.2
rand_in = 42

ARGS = {
    "mydataset": mydataset,
    "test_propotion": test_proportion,
    "rand_in": rand_in
}
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 tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_data_synthtarget_synthcen Ran
ran; our contract draft was wrong, not the code
TeaPearce/Censored_Quantile_Regression_NN/01_code/datasets.py
code served (permissive licence) · get_code("96babf0c32515529")
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. 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

class MockDataset:
    def __init__(self):
        self.input_dim = 3
    
    def get_observe_times(self, x):
        # x shape: (n_data, input_dim)
        # return shape: (n_data, 1)
        n = x.shape[0]
        return np.random.exponential(scale=1.0, size=(n, 1))
    
    def get_censor_times(self, x):
        # x shape: (n_data, input_dim)
        # return shape: (n_data, 1)
        n = x.shape[0]
        return np.random.exponential(scale=1.5, size=(n, 1))
    
    def process_censor_observe(self, target, cen):
        # target shape: (n_data,)
        # cen shape: (n_data,)
        # returns three arrays
        n = len(target)
        y = np.minimum(target, cen)
        cen_indicator = (cen < target).astype(int)
        obs_indicator = np.ones(n, dtype=int)
        return y, cen_indicator, obs_indicator

mydataset = MockDataset()

ARGS = {
    "n_data": 2,
    "mydataset": mydataset,
    "x_range": [0, 2],
    "is_censor": True
}
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 — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_hyperparams Ran
ran; our contract draft was wrong, not the code
TeaPearce/Censored_Quantile_Regression_NN/01_code/hyperparams.py
code served (permissive licence) · get_code("ecfaab91d760f076")
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 numpy as np

ARGS = {
    'dataset_str': 'Gaussian_linear',
    'loss_str': 'cqrnn'
}
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 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
inverse_softplus_grad Ran
ran; our contract draft was wrong, not the code
XintianHan/Survival-MDN/mdn_models.py
pointer only (licence: NONE) · get_code("5dac508453ef46d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, XintianHan/Survival-MDN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

linear Ran
ran, honoured the contract we drafted
MrHuff/Sumo-Net/nets/nets.py
pointer only (licence: NONE) · get_code("691b566282a42d88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrHuff/Sumo-Net when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

lognormal_transform Ran
ran; our contract draft was wrong, not the code
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("d4220cd0d2e403a4")
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) and returned Tensor, ndim 3, dtype family float, shape (2, 4, 3) 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

torch.manual_seed(0)

# Test case 1: normal2lognormal transformation
samples_1 = torch.randn(2, 4, 3)  # shape (2, 4, 3) - batch of 2, feature dim 4, 3 samples
mean_1 = torch.tensor([[1.5, 2.0, 2.5, 3.0], [1.2, 1.8, 2.2, 2.8]])  # shape (2, 4)
std_1 = torch.tensor([[0.5, 0.6, 0.7, 0.8], [0.4, 0.5, 0.6, 0.7]])  # shape (2, 4)
type_1 = 'normal2lognormal'

ARGS = {
    'samples': samples_1,
    'mean': mean_1,
    'std': std_1,
    'type': type_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 3) 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
logsumexp Ran
ran; our contract draft was wrong, not the code
XintianHan/Survival-MDN/mdn_models.py
pointer only (licence: NONE) · get_code("c850f0c294b86e9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, XintianHan/Survival-MDN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

masked_logsumexp Ran
ran; our contract draft was wrong, not the code
shi-ang/BNN-ISD/models.py
code served (permissive licence) · get_code("1da5503866445238")
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 Tensor, ndim 1, dtype family float, shape (2,) 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

torch.manual_seed(0)

# Create a small input tensor (batch_size=2, feature_dim=4)
x = torch.randn(2, 4)

# Create a mask tensor with same shape as x
# 1s indicate positions to include in logsumexp, 0s indicate positions to mask out
mask = torch.tensor([
    [1.0, 1.0, 0.0, 1.0],
    [1.0, 0.0, 1.0, 1.0]
])

# dim parameter defaults to -1 (last dimension)
dim = -1

ARGS = {
    "x": x,
    "mask": mask,
    "dim": dim
}
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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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
mixed_layer_2 Ran
ran on a synthesized input · constructed an object; no result was computed
MrHuff/Sumo-Net/nets/nets.py
pointer only (licence: NONE) · get_code("801ec0f05e6b458f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrHuff/Sumo-Net when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mtlr_nll Ran
ran; our contract draft was wrong, not the code
shi-ang/BNN-ISD/models.py
code served (permissive licence) · get_code("d3fc1659c2e82a40")
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 Tensor, 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 torch.nn as nn

torch.manual_seed(0)

# Create a minimal model with an MTLR layer
class MinimalMTLRModel(nn.Module):
    def __init__(self, input_dim, num_time_bins):
        super().__init__()
        self.mtlr_weight = nn.Parameter(torch.randn(input_dim, num_time_bins))
        self.linear = nn.Linear(input_dim, num_time_bins)
    
    def forward(self, x):
        return self.linear(x)

# Create tensors with distinct dimensions
num_samples = 2
num_time_bins = 4

# logits: shape (num_samples, num_time_bins)
logits = torch.randn(num_samples, num_time_bins)

# target: shape (num_samples, num_time_bins)
# Create a valid target encoding where each sample is either censored (multiple 1s) 
# or uncensored (one 1 for the event time bin)
target = torch.zeros(num_samples, num_time_bins)
target[0, 1:3] = 1  # Censored: multiple 1s (sum > 1)
target[1, 2] = 1    # Uncensored: single 1 (sum == 1)

# Create model
model = MinimalMTLRModel(input_dim=5, num_time_bins=num_time_bins)

# C1 regularization strength
C1 = 0.01

# average flag
average = False

ARGS = {
    "logits": logits,
    "target": target,
    "model": model,
    "C1": C1,
    "average": average
}
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 Tensor, 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
nn_node Ran
ran on a synthesized input · constructed an object; no result was computed
MrHuff/Sumo-Net/nets/nets.py
pointer only (licence: NONE) · get_code("8b53909f1266d6ff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrHuff/Sumo-Net when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("cbf1a6ddc69b5d1b")
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) and returned Tensor, ndim 2, dtype family float, shape (5, 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 torch

torch.manual_seed(0)

# Create a small data tensor with shape (batch=5, features=4)
# Include some NaN values to test the masking logic
data = torch.randn(5, 4)
data[1, 2] = float('nan')
data[3, 0] = float('nan')

# eval_pos parameter: position up to which to compute normalization statistics
eval_pos = 3

ARGS = {
    "data": data,
    "eval_pos": eval_pos,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (5, 4) — shape (5, 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
pad_x Ran
ran; our contract draft was wrong, not the code
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("df966b39a1dd97e1")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 7) 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

torch.manual_seed(0)

# Create a small tensor with shape (batch=2, features=4)
X = torch.randn(2, 4, dtype=torch.float32)

# num_features should be larger than the current number of features
# so that padding is actually added
num_features = 7

ARGS = {
    "X": X,
    "num_features": num_features,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 7) — shape (2, 7) 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
quantile_grids Ran
ran; our contract draft was wrong, not the code
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("cd0cdd3d45072306")
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) and returned QuantileTransformState. 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

torch.manual_seed(0)

# time_context should be a 2D tensor of shape (batch_size, context_len)
# with positive time values
time_context = torch.tensor([
    [0.1, 0.5, 1.2, 2.3],
    [0.2, 0.8, 1.5, 3.1]
], dtype=torch.float32)

ARGS = {
    "time_context": time_context,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type QuantileTransformState — a QuantileTransformState output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
quantile_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TeaPearce/Censored_Quantile_Regression_NN/01_code/models.py
code served (permissive licence) · get_code("dd1c2e866b214fbf")
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 Tensor, 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

torch.manual_seed(0)

# Create small tensors with distinct dimensions
batch_size = 2
num_taus = 4

# y_pred: predictions, shape (batch_size, num_taus)
y_pred = torch.randn(batch_size, num_taus)

# y_true: targets, shape (batch_size, num_taus)
y_true = torch.randn(batch_size, num_taus)

# cen_indicator: censoring indicator, shape (batch_size, num_taus)
# Values should be 0 or 1 to indicate censoring
cen_indicator = torch.randint(0, 2, (batch_size, num_taus)).float()

# taus: quantile levels as numpy array or list
taus = [0.1, 0.3, 0.5, 0.7]

# taus_torch: quantile levels as tensor, shape (1, num_taus)
taus_torch = torch.tensor([0.1, 0.3, 0.5, 0.7]).unsqueeze(0)

# IS_FORCE_ALL_OBS: boolean flag
IS_FORCE_ALL_OBS = False

ARGS = {
    "y_pred": y_pred,
    "y_true": y_true,
    "cen_indicator": cen_indicator,
    "taus": taus,
    "taus_torch": taus_torch,
    "IS_FORCE_ALL_OBS": IS_FORCE_ALL_OBS,
}
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 Tensor, 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
quantile_transform Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("19b490fa90e66633")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 3) 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

torch.manual_seed(0)

class QuantileTransformState:
    def __init__(self, time_grid, quantile_grid, lengths):
        self.time_grid = time_grid
        self.quantile_grid = quantile_grid
        self.lengths = lengths

# Create small test tensors
batch_size = 2
grid_size = 4
sample_size = 3

# time_grid: (B, K) monotonically increasing
time_grid = torch.tensor([
    [0.0, 1.0, 2.0, 3.0],
    [0.0, 0.5, 1.5, 2.5]
], dtype=torch.float32)

# quantile_grid: (B, K) monotonically increasing from 0 to 1
quantile_grid = torch.tensor([
    [0.0, 0.33, 0.67, 1.0],
    [0.0, 0.25, 0.75, 1.0]
], dtype=torch.float32)

# lengths: (B,) - not used in the function but part of NamedTuple
lengths = torch.tensor([4, 4], dtype=torch.long)

# Create state
state = QuantileTransformState(
    time_grid=time_grid,
    quantile_grid=quantile_grid,
    lengths=lengths
)

# samples: (B, M) - can be reshaped to any shape with batch dim first
samples = torch.tensor([
    [0.5, 1.5, 2.5],
    [0.25, 1.0, 2.0]
], dtype=torch.float32)

ARGS = {
    'samples': samples,
    'state': state,
    'type': 'time2quantile'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
quantiles_to_mean Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TeaPearce/Censored_Quantile_Regression_NN/01_code/utils.py
code served (permissive licence) · get_code("5c5378bdb7f3e770")
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 (2,) 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

# Construct arguments for quantiles_to_mean
# The function expects:
# - y_preds: array of shape (batch_size, num_quantiles) containing predicted quantile values
# - taus: array of quantile levels, must have length >= 3 (since we slice [1:-1] and [:-2])

# Create taus: quantile levels from 0 to 1
# Need at least 3 elements for the slicing operations in the function
taus = np.array([0.0, 0.33, 0.67, 1.0])

# Create y_preds: shape (batch_size=2, num_quantiles=4)
# Each row represents predictions at different quantile levels for a sample
y_preds = np.array([
    [1.0, 2.5, 3.5, 5.0],
    [1.5, 2.8, 3.2, 4.8]
])

ARGS = {
    'y_preds': y_preds,
    'taus': taus
}
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 (2,) — shape (2,) 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
quantiles_to_median Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TeaPearce/Censored_Quantile_Regression_NN/01_code/utils.py
code served (permissive licence) · get_code("4c2e331e631c0d6f")
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 (2,) 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 valid arguments for quantiles_to_median
y_preds = np.array([
    [1.0, 2.0, 3.0, 4.0, 5.0],
    [1.5, 2.5, 3.5, 4.5, 5.5]
])

taus = np.array([0.1, 0.3, 0.5, 0.7, 0.9])

ARGS = {
    "y_preds": y_preds,
    "taus": taus
}
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 (2,) — shape (2,) 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_inverse_softplus Ran
ran; our contract draft was wrong, not the code
XintianHan/Survival-MDN/mdn_models.py
pointer only (licence: NONE) · get_code("eba67474712ea634")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, XintianHan/Survival-MDN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

surv_nll Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("2c439f9b4caec20b")
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) and returned Tensor, ndim 1, dtype family float, shape (2,) 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 torch.nn.functional as F

torch.manual_seed(0)

# Parameters for surv_nll function
nbins = 4
batch_size = 2

# logits: shape (batch_size, nbins) - predicted distribution over bins
logits = torch.randn(batch_size, nbins)

# t_target: shape (batch_size,) - target times
t_target = torch.tensor([0.5, 1.5], dtype=torch.float32)

# delta_target: shape (batch_size,) - event indicators (1 if event, 0 if censored)
delta_target = torch.tensor([1.0, 0.0], dtype=torch.float32)

# bin_edges: shape (nbins,) - left edges of bins
# Values should be increasing and represent bin boundaries
bin_edges = torch.tensor([0.0, 1.0, 2.0, 3.0], dtype=torch.float32)

ARGS = {
    "logits": logits,
    "t_target": t_target,
    "delta_target": delta_target,
    "bin_edges": bin_edges,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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
survival_net_basic Ran
ran on a synthesized input · constructed an object; no result was computed
MrHuff/Sumo-Net/nets/nets.py
pointer only (licence: NONE) · get_code("a6807cbbd18871f3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrHuff/Sumo-Net when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BayesEleMtlr Not yet run
unverified (harvested, no recorded run)
shi-ang/BNN-ISD/models.py
code served (permissive licence) · get_code("9bd69ce8f93054e9")
How it ran

no invocation recorded.

BayesMtlr Not yet run
unverified (harvested, no recorded run)
shi-ang/BNN-ISD/models.py
code served (permissive licence) · get_code("2b3c8eaeca6b4b0a")
How it ran

no invocation recorded.

BayesianBaseModel Not yet run
unverified (harvested, no recorded run)
shi-ang/BNN-ISD/models.py
code served (permissive licence) · get_code("29acbe919b64f3a1")
How it ran

no invocation recorded.

BayesianLinear Not yet run
unverified (harvested, no recorded run)
shi-ang/BNN-ISD/models.py
code served (permissive licence) · get_code("4c447ff148294feb")
How it ran

no invocation recorded.

InContextModel Not yet run
unverified (harvested, no recorded run)
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("16511eb2ca2c686c")
How it ran

no invocation recorded.

MDNModel Not yet run
unverified (harvested, no recorded run)
XintianHan/Survival-MDN/mdn_models.py
pointer only (licence: NONE) · get_code("99469b9ed77bacde")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, XintianHan/Survival-MDN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

MMSE_fn Not yet run
unverified (harvested, no recorded run)
TeaPearce/Censored_Quantile_Regression_NN/01_code/utils.py
code served (permissive licence) · get_code("527faa34f6dbe3a6")
How it ran

no invocation recorded.

QuantileTransformState Not yet run
unverified (harvested, no recorded run)
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("1b11a31b7f48278e")
How it ran

no invocation recorded.

_build_tabdpt_from_config Not yet run
unverified (harvested, no recorded run)
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("34fc08263e203895")
How it ran

no invocation recorded.

_get_nested Not yet run
unverified (harvested, no recorded run)
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("e923887f73773cba")
How it ran

no invocation recorded.

cqrnn_loss Not yet run
unverified (harvested, no recorded run)
TeaPearce/Censored_Quantile_Regression_NN/01_code/models.py
code served (permissive licence) · get_code("941db4bbd20d0b42")
How it ran

no invocation recorded.

get_dataset Not yet run
unverified (harvested, no recorded run)
TeaPearce/Censored_Quantile_Regression_NN/01_code/datasets.py
code served (permissive licence) · get_code("3aeb675f6185d8fd")
How it ran

no invocation recorded.

load_pretrained_tabdpt_model Not yet run
unverified (harvested, no recorded run)
rgklab/SurvivalPFN/survivalpfn/models/icl_model.py
code served (permissive licence) · get_code("62e532aa24f5ec49")
How it ran

no invocation recorded.

multi_input_Sequential_res_net Not yet run
unverified (harvested, no recorded run)
MrHuff/Sumo-Net/nets/nets.py
pointer only (licence: NONE) · get_code("3510bae48fb5d336")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MrHuff/Sumo-Net when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

train_loop_neocleous Not yet run
unverified (harvested, no recorded run)
TeaPearce/Censored_Quantile_Regression_NN/01_code/algorithms.py
code served (permissive licence) · get_code("b22cd71935152594")
How it ran

no invocation recorded.

train_loop_single_models Not yet run
unverified (harvested, no recorded run)
TeaPearce/Censored_Quantile_Regression_NN/01_code/algorithms.py
code served (permissive licence) · get_code("f9ffe47cd6305c1c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 60 samples lifted from this paper's linked repositories, 60 carry a function identity and 0 do not. Of the 60 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 later) and 55 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
linear
brick of this paper's assembly: helper
6 other papers
6 dated earlier · 1 only as an assembly brick
1803.06585 (2018-03)
Learning Long Term Dependencies via Fourier Recurrent Units
1901.11504 (2019-01)
Multi-Task Deep Neural Networks for Natural Language Understanding
2001.01565 (2020-01)
Stance Detection Benchmark: How Robust Is Your Stance Detection?
and 3 more not named here
RELU
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2111.08175 (2021-11)
Inverse-Weighted Survival Games
cqrnn_loss 1 other paper
1 dated earlier
2205.13496 (2022-05)
Censored Quantile Regression Neural Networks for Distribution-Free Survival Analysis
crossing_loss 1 other paper
1 dated earlier
2205.13496 (2022-05)
Censored Quantile Regression Neural Networks for Distribution-Free Survival Analysis
quantile_loss 1 other paper
1 dated earlier
2205.13496 (2022-05)
Censored Quantile Regression Neural Networks for Distribution-Free Survival Analysis

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

Survival analysis provides a powerful statistical framework for modeling time-toevent outcomes in the presence of censoring. However, selecting an appropriate estimator from the many specialized survival approaches often requires substantial methodological and domain expertise. We introduce SurvivalPFN, a prior-data fitted network that amortizes Bayesian inference for censored observations through in-context learning. SurvivalPFN is pretrained on a diverse family of synthetic, identifiable, and right-censored data-generating processes, enabling it to amortize survival analysis in a single forward pass during inference. As a result, the model adapts to the effective complexity of each dataset without task-specific training or hyperparameter tuning, avoids restrictive parametric assumptions, and produces calibrated survival distributions. In a large-scale benchmark spanning 61 datasets, 21 methods, and 5 evaluation metrics, SurvivalPFN achieves strong predictive performance and often improves upon established survival models. These results suggest that SurvivalPFN offers a principled and practical foundation model for survival analysis, with potential applications in high-impact domains such as healthcare, finance, and engineering (https://github.com/rgklab/SurvivalPFN).

For agents

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

get_harvested_code_for_paper("2605.15488")
get_code_for_paper("2605.15488")
have("2605.15488")

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

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

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

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

Connect an agent — have() is free.