Visualize

survivors.visualize.base.plot_survival_function(sf, bins, title='')

Classic survival function plotting

Parameters

sf: iterable (with len(sf) == len(bins))

Survival probabilities

bins: iterable

Times of probabilities

title: str

survivors.visualize.comparison.plot_func_comparison(y_true, y_preds, labels)

Plot multiple functions by method

Parameters

y_true: structured np.ndarray with shape=(n, 2) y_preds: list of np.ndarray with shape=(n, n_bins) labels: list of str

survivors.visualize.comparison.plot_metric_comparison(y_true, y_preds, labels, bins, metric)

Comparison quality metric in time

Parameters

y_true: structured np.ndarray with shape=(n, 2) y_preds: list of np.ndarray with shape=(n, n_bins) labels: list of str bins: np.ndarray with shape=(n_bins) metric: function of internal metric