Open tadongguk opened 2 days ago
Dear @tadongguk,
Thank you for your interest in torchsurv and your question.
1/ To compute the IBS, one needs to be able to estimate the survival function. This is not library-dependent, it is the definition of the metric, see notes here https://opensource.nibr.com/torchsurv/_autosummary/torchsurv.metrics.brier_score.html and relevant reference. The survival function is available for the Weibull Accelerated Time Failure (AFT), but not directly for the Cox Proportional Hazards model.
2/ The NN architecture (in your case a CNN) is defined on the survival model's parameters - the log relative hazard for the cox proportional hazards model, and the Weibull parameters for the Weibull AFT model. In conclusion, you can use your CNN to estimate the Weibull parameters for the Weibull AFT model, and get an IBS.
Hi @tadongguk!
Thank you for using TorchSurv
!
In addition, I would suggest to checkout our tutorial that covers all metrics (including Brier score) and how to use it.
TL;DR:
TorchSurv
🔥 brier_score(surv, event, time)
I'm currently using the torchsurv library for survival analysis with a CNN model, but the library only supports calculating the C-index and does not provide the Brier score (IBS).
What would be the best approach to calculate the Integrated Brier Score (IBS) for a CNN model?
Could I use another library like scikit-survival or lifelines for this, and if so, how could I integrate those with my CNN-based model? Additionally, if using the Weibull model in torchsurv, is it necessary to use the Weibull model to compute IBS, or are there other models I could use?