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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file survival-datasets-0.1.5.tar.gz.

File metadata

  • Download URL: survival-datasets-0.1.5.tar.gz
  • Upload date:
  • Size: 263.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for survival-datasets-0.1.5.tar.gz
Algorithm Hash digest
SHA256 41ce2ce91ef84f111d2dd34d8d579cbc72489600d7a3b15ca22ed32437a35017
MD5 9610756215ef40a5b4d4981e9bcd2455
BLAKE2b-256 ebba72b67768f01b31cd4098c03d1c9545572ddb33adaa8202b41bdf2c97e8b8

See more details on using hashes here.

File details

Details for the file survival_datasets-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for survival_datasets-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 87f5720816eb2e385b06f6815ff1d1bd8f27efd63b059d3ad51c222467b4ff68
MD5 93b75113836e3096fa90e72655b7f862
BLAKE2b-256 eb3b7f7fbfbedca2c991fe122eac753dee27450a2c54a8c9bcf06f94a9992bf2

See more details on using hashes here.

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