Installation
SurvivalTabPFN
View source - classifier -> P(event | X)
- distributional regressor -> T | (event, X)
- “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).
predict_cif_at(X, t_grid) -> CIF_1(t|X) = P(T <= t, event=1 | X)predict_survival_from_cif_at(X, t_grid) -> 1 - CIF_1(t|X)
- predict_cdf_at(X, t_grid)
-> same as
predict_cif_at, returns CIF_1(t|X) - predict_survival_at(X, t_grid)
-> same as
predict_survival_from_cif_at
SurvivalTabPFN.fit
View source SurvivalTabPFN.predict
View source SurvivalTabPFN.predict_cif_at
View source 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).
SurvivalTabPFN.predict_risk
View source SurvivalTabPFN.predict_survival_from_cif_at
View source X) based on predict_cif_at.
i.e. the probability that event 1 has not yet occurred by time t.