Skip to main content

Data loader for common datasets in Survival Analysis.

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

survival-datasets-0.1.5.tar.gz (263.1 kB view hashes)

Uploaded Source

Built Distribution

survival_datasets-0.1.5-py3-none-any.whl (263.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page