Skip to main content

Survival analysis built on top of scikit-learn

Project description

License readthedocs.org Digital Object Identifier (DOI)

GitHub Actions Tests 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.3

  • 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.22.2.tar.gz (2.7 MB view details)

Uploaded Source

Built Distributions

scikit_survival-0.22.2-cp312-cp312-win_amd64.whl (823.3 kB view details)

Uploaded CPython 3.12 Windows x86-64

scikit_survival-0.22.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

scikit_survival-0.22.2-cp312-cp312-macosx_11_0_arm64.whl (836.0 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

scikit_survival-0.22.2-cp312-cp312-macosx_10_13_x86_64.whl (871.4 kB view details)

Uploaded CPython 3.12 macOS 10.13+ x86-64

scikit_survival-0.22.2-cp311-cp311-win_amd64.whl (816.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

scikit_survival-0.22.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

scikit_survival-0.22.2-cp311-cp311-macosx_11_0_arm64.whl (830.2 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

scikit_survival-0.22.2-cp311-cp311-macosx_10_13_x86_64.whl (861.6 kB view details)

Uploaded CPython 3.11 macOS 10.13+ x86-64

scikit_survival-0.22.2-cp310-cp310-win_amd64.whl (816.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

scikit_survival-0.22.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

scikit_survival-0.22.2-cp310-cp310-macosx_11_0_arm64.whl (830.8 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

scikit_survival-0.22.2-cp310-cp310-macosx_10_13_x86_64.whl (862.3 kB view details)

Uploaded CPython 3.10 macOS 10.13+ x86-64

scikit_survival-0.22.2-cp39-cp39-win_amd64.whl (818.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

scikit_survival-0.22.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

scikit_survival-0.22.2-cp39-cp39-macosx_11_0_arm64.whl (834.1 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

scikit_survival-0.22.2-cp39-cp39-macosx_10_13_x86_64.whl (864.9 kB view details)

Uploaded CPython 3.9 macOS 10.13+ x86-64

scikit_survival-0.22.2-cp38-cp38-win_amd64.whl (820.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

scikit_survival-0.22.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

scikit_survival-0.22.2-cp38-cp38-macosx_10_13_x86_64.whl (863.0 kB view details)

Uploaded CPython 3.8 macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: scikit-survival-0.22.2.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for scikit-survival-0.22.2.tar.gz
Algorithm Hash digest
SHA256 0e9c86750c0de1580662675110994f07a3568955aef14af81316f2b3100332bf
MD5 53b67b6142d2895cd49a7007345bade4
BLAKE2b-256 fe5f9e8920e843622383257ae36ee0048c1223a6fee96d07ba23925b0b6f9f1b

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 08b26a164ab2c65b23a9a384f3a7f1b41ca6c422e755c79315460fe01b26a9db
MD5 a02c3b59e7d5beaaa295c4c1116a56a6
BLAKE2b-256 f117b165e66088b5e1f4b0bd12955b924cdb60ae557fb71ff397b8af03b82af6

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1786c9db8dbf0add6b3f21cce70e79e6e9f38f456878d464263c6bc379fdcd8a
MD5 71f42586a40713e99e993e14d053cb7a
BLAKE2b-256 c1c76819bd8e3a6410d0b4dce986430507d5fcaae4b0668336b5b9e9ecfc78a4

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0351ccfdb07110be60080d35ac581f633d20e30630ee7c4cd7ce0b5acdf0eeb
MD5 4b9a423bec0fcc7e9fa4390a6a4de6ce
BLAKE2b-256 1137f45539f76a96333ea2e399dad469967b07019ca8326c62cf96db6681c523

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 8ca25b26c2aa2c108c39573936f74ffcfb1a7b020a6988b399c0dfd247884333
MD5 39540c4b15a5b901e206482adce722fd
BLAKE2b-256 2a6a46b293709588f6f66c26766ce69babca9b95debc12708847f58d87ec4531

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 acb1858a92e3393a985aeae8134d8094c696713201065a0926a1f4774e5c7fc0
MD5 c6e722b3ccaf5892ed2c799cd3b37c6b
BLAKE2b-256 73b22d15319792af55a0dbd8c3610461603c3bf4bba23b16c8763e47d3ddcc5b

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 373cb8f87182abe6cac54f546a666a2a21fabea41a821a44ab0ec0477bdf4367
MD5 648d99d7920eb76a28ebfd1d7fae30cd
BLAKE2b-256 dd72ead7877bf73eb39011f00eae7b02fa9673748aa7db96876f018769c3299f

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0f6b402d7b7ab25ebd0c4b32a30c12d58b81eea4c2a4bd8656592e5c6956d32
MD5 b0a515fe72b850067d89bab911839e65
BLAKE2b-256 8a1a87cc732d5cc60d0321e38a3c503fb431b4b6b40cabf3d76bb25860680e48

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp311-cp311-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp311-cp311-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 6dd7a32cba04b73f2c10e5861f85ea2ad3963357ba668681c26ce74b2ee6b9af
MD5 387312a7a8fffee2f565a764411fdcc9
BLAKE2b-256 4e75ff3c9c6b525981549b0681b0263798232270b06ae83f3d75a0b51a4d7b6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c787deaa599c49d7aafdbe423fd46301cfa59bd7b0bd163cd61805beb48f5b0e
MD5 9d150e176a0d0a92e22c14d1ed2b79c8
BLAKE2b-256 8978b15000a3181cca5944d56adfaa8f32f54c6c342a3be02783ac0095a62414

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 78e26193afef7c9570d3e80ec0b7f5fb4b3b3f6639eaab1cc09cf1beea4fd362
MD5 aace768fc5144e91a23c8c04650d241e
BLAKE2b-256 7b0f8cd0432bf659d934f333dd9447630b01eafe0a96f0e843f4de9c17af3747

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d1accf5aa628b5f24bd8c7c5fe001f8d07a0810fdf9f7ad237fc735c3417d25
MD5 6093641e52f118017e9578c690dfbca6
BLAKE2b-256 100a35e62cb6c31b8674ab8de989ab11f1f586fce685bdfba28df9d7b1dfeac8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp310-cp310-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 05d9e7dcc831cf01648cdc555c58e213736e0208cf7a4266977ed478fdd706da
MD5 db39561f457d70c14e1051cc59772ce4
BLAKE2b-256 e7ef2399ddab96702ac658f7512730ad4b3fe1dde4d3eae0d1987a7f3d532a52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a0b8f2679d28d6aa82daf02d16de4e9fad4f81106b6f83910527b1837dec733e
MD5 96427ea3124e12d1e712ed58e5bf1caa
BLAKE2b-256 b8fb6362159f19f7e4547c257952b7fe7f492cdec5586ff5048e68bd6d754ab6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5dca4631a4ecbe5c41fcc393c196fb6fab9c65c1ce23468c5202c3c4da6892b5
MD5 b8d84c7645d497809dde82676150f066
BLAKE2b-256 bcb0210c6a499e7648ea503f8722476713efcc24323c4e30e9844519eb866382

See more details on using hashes here.

File details

Details for the file scikit_survival-0.22.2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbe64885c5cf787f3af5f63b1b82e3ccdf195b39ab170b7cc6929601f0246ccd
MD5 4ca98e608ce08ad9a3ae34387d90d89e
BLAKE2b-256 64d2907be1b5addd1deb93c2988f9396e3dac7d49d4807264ddb5d53d225367d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 d69368171f4a4c4abab4478e1513c8b8cfbdc839d42d0b2bf8c57587ebb9ea1b
MD5 05f1f719abe7c4fac09b446a948d4231
BLAKE2b-256 d6f97791aeddead6c3853c78208db75f33bc4ff844265d70c3171fa5b2ee73dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 455264823997ba8fc4bf31caca64c31a30c9ae34fcf2530c84957a399dbf5c0a
MD5 c48be3af934de431c51caee2a29bbd75
BLAKE2b-256 24b611405728295ab0d88096e89e670dc82db5b15ac21b772c440f9b0fea99b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34aa4b8ae9cfd7f4486fdf6b1ab4974a5e9ad7d1c74adfdaeb13c6337199115d
MD5 0f83bda873f585f2f380638b041fe7d7
BLAKE2b-256 65ad0de845133a1070b089a1545f074a165f2a1af6c15fe51026d241a0f989bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_survival-0.22.2-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2df9071aaa9f66c0fdb53f2257810c547f28ebc0b3961c6a977cc8526cf98a5d
MD5 46bec68f1a4331e0cd65f229c4a381be
BLAKE2b-256 8e9d4725dd038e9b4139d170a45f89b6930421ef84ef91f57f8fd55af7db169f

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