plot_time_dependent_auc
Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- plot_time_dependent_auc(time: ndarray, event: ndarray, risk: ndarray, *, n_times: int = 50, time_label: str = 'Time')[source]
Uno’s cumulative/dynamic AUC as a function of follow-up time.
- Parameters:
time – Observed follow-up durations.
event – Event indicators, True for observed events.
risk – Per-subject risk scores (higher means shorter survival).
n_times – Number of grid points across the evaluable range.
time_label – X-axis label (sanitised).
- Returns:
The matplotlib
Figure.