Skip to main content

Survival analysis built on top of scikit-learn

Project description

License readthedocs.org Digital Object Identifier (DOI)

Linux Build Status macOS Build Status Windows Build Status on AppVeyor codecov Codacy Badge

scikit-survival

scikit-survival is a Python module for survival analysis built on top of scikit-learn. It allows doing survival analysis while utilizing the power of scikit-learn, e.g., for pre-processing or doing cross-validation.

About Survival Analysis

The objective in survival analysis (also referred to as time-to-event or reliability analysis) is to establish a connection between covariates and the time of an event. What makes survival analysis differ from traditional machine learning is the fact that parts of the training data can only be partially observed – they are censored.

For instance, in a clinical study, patients are often monitored for a particular time period, and events occurring in this particular period are recorded. If a patient experiences an event, the exact time of the event can be recorded – the patient’s record is uncensored. In contrast, right censored records refer to patients that remained event-free during the study period and it is unknown whether an event has or has not occurred after the study ended. Consequently, survival analysis demands for models that take this unique characteristic of such a dataset into account.

Requirements

  • Python 3.8 or later

  • ecos

  • joblib

  • numexpr

  • numpy 1.17.3 or later

  • osqp

  • pandas 1.0.5 or later

  • scikit-learn 1.1

  • scipy 1.3.2 or later

  • C/C++ compiler

Installation

The easiest way to install scikit-survival is to use Anaconda by running:

conda install -c sebp scikit-survival

Alternatively, you can install scikit-survival from source following this guide.

Examples

The user guide provides in-depth information on the key concepts of scikit-survival, an overview of available survival models, and hands-on examples in the form of Jupyter notebooks.

Help and Support

Documentation

Bug reports

  • If you encountered a problem, please submit a bug report.

Questions

  • If you have a question on how to use scikit-survival, please use GitHub Discussions.

  • For general theoretical or methodological questions on survival analysis, please use Cross Validated.

Contributing

New contributors are always welcome. Please have a look at the contributing guidelines on how to get started and to make sure your code complies with our guidelines.

References

Please cite the following paper if you are using scikit-survival.

S. Pölsterl, “scikit-survival: A Library for Time-to-Event Analysis Built on Top of scikit-learn,” Journal of Machine Learning Research, vol. 21, no. 212, pp. 1–6, 2020.

@article{sksurv,
  author  = {Sebastian P{\"o}lsterl},
  title   = {scikit-survival: A Library for Time-to-Event Analysis Built on Top of scikit-learn},
  journal = {Journal of Machine Learning Research},
  year    = {2020},
  volume  = {21},
  number  = {212},
  pages   = {1-6},
  url     = {http://jmlr.org/papers/v21/20-729.html}
}

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

scikit-survival-0.18.0.tar.gz (2.5 MB view details)

Uploaded Source

Built Distributions

scikit_survival-0.18.0-cp310-cp310-win_amd64.whl (708.3 kB view details)

Uploaded CPython 3.10 Windows x86-64

scikit_survival-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

scikit_survival-0.18.0-cp310-cp310-macosx_10_13_x86_64.whl (758.5 kB view details)

Uploaded CPython 3.10 macOS 10.13+ x86-64

scikit_survival-0.18.0-cp39-cp39-win_amd64.whl (713.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

scikit_survival-0.18.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

scikit_survival-0.18.0-cp39-cp39-macosx_10_13_x86_64.whl (759.4 kB view details)

Uploaded CPython 3.9 macOS 10.13+ x86-64

scikit_survival-0.18.0-cp38-cp38-win_amd64.whl (714.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

scikit_survival-0.18.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

scikit_survival-0.18.0-cp38-cp38-macosx_10_13_x86_64.whl (751.8 kB view details)

Uploaded CPython 3.8 macOS 10.13+ x86-64

File details

Details for the file scikit-survival-0.18.0.tar.gz.

File metadata

  • Download URL: scikit-survival-0.18.0.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for scikit-survival-0.18.0.tar.gz
Algorithm Hash digest
SHA256 2df4044a62b1489e2d5a5a771194c16a33b1642dc810e52d2665fc03944ea665
MD5 57cc48eb1e6e2c6725398d9a92adf0b2
BLAKE2b-256 69f0ab13d101f7f940bed5a25538ddc37d2d316154816d09f4f4f9b2660d07e1

See more details on using hashes here.

File details

Details for the file scikit_survival-0.18.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.18.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 af0cd5a804260351dd9a3b888ed94e3ba668c8c6c41b278c084b9588b5bd513b
MD5 142a97e343049044bb1bd66c99ea8cd0
BLAKE2b-256 94186297b8f92359da7cb5c550e4811fc45362cf259e4a1535f20ef3e81b65ed

See more details on using hashes here.

File details

Details for the file scikit_survival-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92e84b6c1db08ebd7b048625b0b06e204ae3398869b33b6f095e7e5cd47c7565
MD5 02e170dd8bb0cf49f3a3bac4738c5d88
BLAKE2b-256 c2042e8d0e34c6d599c7d2efc46e6e2329d1896f4aed331dde1e973129f265c5

See more details on using hashes here.

File details

Details for the file scikit_survival-0.18.0-cp310-cp310-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.18.0-cp310-cp310-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c5598f7664e7fe60ddc149d577f9900ee5071c5c26ffb899c8d1bdda8f2c8045
MD5 d4fd3749e46ae505e78ea71d32ba5ddb
BLAKE2b-256 1f8d54c7cb0fec9a194eee91c034fb737bcfe710e3e7b81a65dc60b67ea73414

See more details on using hashes here.

File details

Details for the file scikit_survival-0.18.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.18.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d6ee93621f00fbf2d97afe2e6f20d0e54524e1dfa2ea20918c68e21903845f1a
MD5 6ced61ebc19ea4d4fdd6298ba8eb94bf
BLAKE2b-256 638616f37238dfa5213de275b9d0c4b1a5c2d407ccf47a8787f71c3cbd162465

See more details on using hashes here.

File details

Details for the file scikit_survival-0.18.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.18.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b7da99c24e8e2ae0c46bf597227bf0aab36983bb3fc31d487247406af70c9d0e
MD5 97e2c7eeb81dbd0391f0168d18e86e7f
BLAKE2b-256 ed5e57b0fa03ce0387d27c4081653bdee8cfa44ef5ac4a7d42b1376d7fb5bfc7

See more details on using hashes here.

File details

Details for the file scikit_survival-0.18.0-cp39-cp39-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.18.0-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 63cc0b49a97f11919826a0b0ed075af4f170939a5f8d952dd582ece4adf96106
MD5 c416b9a70ce331f165dd7d587f8b96f1
BLAKE2b-256 a4067e943b11d640dcc339da96f2ba040388ec27350458baae590f90bdb36926

See more details on using hashes here.

File details

Details for the file scikit_survival-0.18.0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.18.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6e17844267fdf43f47a893690b3db2b25b44c2ce057195ad4e4f02073153c379
MD5 4f238d9c89d0bad57291b746df73f0e3
BLAKE2b-256 f17c51fe8dc4ff44e99813b72782c3f8c0b59de2ec34165230c2e53312e244fc

See more details on using hashes here.

File details

Details for the file scikit_survival-0.18.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.18.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6ef88d0e9bdbd71427c5ffdc4530c2d0438217d60008c9292c8b2c35895d04f2
MD5 51f4008160d6f9dee1adb726cc5db4a7
BLAKE2b-256 a8ba1ee908b88f065529dfa94099ceff041edd014fe13c5522ade0398212b1c6

See more details on using hashes here.

File details

Details for the file scikit_survival-0.18.0-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.18.0-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 3a6d61362eaea0aa18bba304d0471748bff736d664c0eb1b90e18d8958021733
MD5 78bf8b6a0d584d069884cc79da1fd8ef
BLAKE2b-256 5be8f5412dfe2cb37e184ddf79ab3bc6e6aa593d0f9a00aa25ef361924dd0252

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