drl_cox is a Wasserstein-based Distributionally Robust Cox Model. This model uses distributionally robust optimization (DRO) techniques to improve the robustness of survival analysis, particularly in the presence of distributional shifts.
- Implements a distributionally robust version of the Cox Proportional Hazards model using Wasserstein distance.
- Utilizes Random Survival Forests (RSF), Accelerated Failure Time Model (AFT) and Penalized Cox Models as baseline models.
- Inject contamination to the test datas to simulate distributional shift and compare the performance.
- numpy==1.24.0
- pandas
- lifelines
- sksurv
- torch
- cvxpy
- clarabel/mosek
- scipy
- sklearn
To run the model with WHAS500 dataset, use the following command:
python eval.py
To run the model with other dataset, use the command line with the following structure:
python eval.py --data_path /path/to/data.csv --output_path /path/to/results/
If you find DRL-Cox useful in your research, please consider citing our paper:
title={Distributionally Robust Learning in Survival Analysis},
author={Yeping Jin and Lauren Wise and Ioannis Ch. Paschalidis},
year={2025},
eprint={2506.01348},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2506.01348},
}