Closed CoteDave closed 3 years ago
I think this can do the job:
survival_func_list = [] for i in range(0, np.max(y_train['DUREE_MOIS'])): survival_func_list.append(y_dists.sf(i)) survival_func_matrix = pd.DataFrame(survival_func_list)
@CoteDave, also see this discussion: https://github.com/stanfordmlgroup/ngboost/discussions/224
Hi,
Is there an easy way to extract the survival functions from each individual instance with the NGBSurvival.pred_dist ?
Thanks!