survival-datasets

Data loader for common datasets in Survival Analysis.


Keywords
Survival, Analysis, Datasets, machine-learning, python, survival-analysis
License
MIT
Install
pip install survival-datasets==0.1.5

Documentation

survival-datasets

A simple data loader for the most common datasets in survival analysis. Currently the following are included:

Requirements

  • Python 3.8 or later
  • scikit-survival 0.17.2 or later
  • pandas 1.4.3 or later
  • numpy 1.22.4 or later
  • shap 0.41 or later
  • pyarrow 11.0 or later

Installation

Simply install via pip:

pip install survival-datasets

Examples

Import the datasets module from the package and load your dataset of choice:

from survdata import datasets

if __name__ == "__main__":
    X, y = datasets.load_seer_dataset()