Fixed Time Horizons
A time-to-event prediction must specify when the outcome is evaluated. Use fixed_time_horizons to declare those times in the same unit as times and the prediction model:
fixed_time_horizons = [5.0, 10.0] # yearsChoose clinically meaningful horizons before inspecting performance. Changing the horizon changes the outcome being validated.
Update administrative censoring
At a fixed horizon:
- an event observed after the horizon is a ๐คจ non-event at that horizon;
- event-free follow-up ending before the horizon is ๐คฌ censored;
- a primary event observed by the horizon remains ๐คข; and
- a competing event observed by the horizon remains ๐.
Explore the horizon
Move the slider to see how the selected horizon changes each observation. The vertical line marks the horizon; information after it is not used.
The symbols are:
- ๐คฌ censored before the horizon;
- ๐คข primary event;
- ๐คจ non-event through the horizon; and
- ๐ competing event.
Pass horizons to rtichoke
performance_data = rk.prepare_performance_data_times(
probs=probs,
reals=reals,
times=times,
fixed_time_horizons=[5.0, 10.0],
)