Skip to content

noc-lab/drl_cox

Repository files navigation

drl_cox

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.

Features

  • 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.

Requirements

  • numpy==1.24.0
  • pandas
  • lifelines
  • sksurv
  • torch
  • cvxpy
  • clarabel/mosek
  • scipy
  • sklearn

Usage

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/

Citing DRL-Cox

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}, 
}

About

A Wasserstein-based Distributionally Robust Cox Model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages