Skip to main content

Installation

Two-head TabPFN survival scorer:
  1. classifier -> P(event | X)
  2. distributional regressor -> T | (event, X)
Scalar risk options (higher = riskier):
  • “weighted_cdf” (default): sum_j w_j * CIF_1(tau_j | X), where CIF_1(t | X) = P(T <= t, event=1 | X).
  • “avg_cdf”: uniform average of CIF_1(tau_j | X) across horizons.
  • “p_over_mean”: P(event|X) / E[T | event, X] (legacy fallback).
Also exposes CIF-based curves for event=1: Backwards-compatible aliases (deprecated):
Parameters

SurvivalTabPFN.fit

View source

SurvivalTabPFN.predict

View source

SurvivalTabPFN.predict_cif_at

View source
Event-1 cumulative incidence CIF_1(t|X). Computes CIF_1(t|X) = P(T <= t, event=1 | X) via the factorization P(event=1 | X) * P(T <= t | event=1, X).
Parameters
Returns

SurvivalTabPFN.predict_risk

View source

SurvivalTabPFN.predict_survival_from_cif_at

View source
Complement 1 - CIF_1(t|X) based on predict_cif_at. i.e. the probability that event 1 has not yet occurred by time t.
Parameters
Returns