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.11 or later
ecos
joblib
numexpr
numpy 2.0.0 or later
osqp
pandas 2.2.0 or later
scikit-learn 1.9
scipy
narwhals 2.0.1 or later
C/C++ compiler
Installation
The easiest way to install scikit-survival is to use conda-forge by running:
conda install -c conda-forge scikit-survival
Alternatively, you can install scikit-survival from PyPI or from source.
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
HTML documentation for the latest release: https://scikit-survival.readthedocs.io/en/stable/
HTML documentation for the development version (main branch): https://scikit-survival.readthedocs.io/en/latest/
For a list of notable changes, see the release notes.
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}
}
Metadata
Release files for scikit-survival 0.28.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| scikit_survival-0.28.0.tar.gz | 4.7 MB | With provenance | Details |
Built distributions (wheels)
Total release size: 31.9 MB
Release files / scikit_survival-0.28.0.tar.gz
| Download URL | scikit_survival-0.28.0.tar.gz |
|---|---|
| Size | 4.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8903bf9b67bf9040c7a8b639d300b0817d9e208c8fd7bf34cc624dcc71d32ee
|
|
BLAKE2b-256 checksum How to use checksums |
fd5f4f9951a625c4570a37ea86f64a4162d0ee62374b6b304bd3ae1812cd6723
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp314-cp314-win_amd64.whl
| Download URL | scikit_survival-0.28.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ba18dc9979b35bbc91992dbb2b142587340d51f8c0e5491f52d1c1a76bda21c4
|
|
BLAKE2b-256 checksum How to use checksums |
a35c0b82153f1b49704ddfbb1da54032c6f14d2ad13d4b47fd2b6b30d6f2ffbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | scikit_survival-0.28.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
1dea579f9f025d4092a0df1d09f9fdd12845a5d49abb36f3be50472c31371568
|
|
BLAKE2b-256 checksum How to use checksums |
aae062be77882b822f2f78d84dd9fb94d5c7365ce0299c264818de78d4b7230a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | scikit_survival-0.28.0-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 888.8 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cac9d3a2c727999db3a108ed092e5a8dde1f53e60ef054b5df7869036d3b405d
|
|
BLAKE2b-256 checksum How to use checksums |
68dfc9dc7e4905589dc994f376a6d03b180abe9c61f5ff5d5ce13a6cf2987063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp314-cp314-macosx_10_15_x86_64.whl
| Download URL | scikit_survival-0.28.0-cp314-cp314-macosx_10_15_x86_64.whl |
|---|---|
| Size | 894.4 kB |
| Tags | CPython 3.14 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
70c6468bfb2a476e52e6150c02ed942983782a1a3a8e4eb43fa8fe7753ed3e73
|
|
BLAKE2b-256 checksum How to use checksums |
9bab729213dcc4db9c9159a07bd00736e853db6234f41e152cdf360d77a8618d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp313-cp313-win_amd64.whl
| Download URL | scikit_survival-0.28.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ce0282110189fbbe482d66f21a6839ce57667fabd91633977566cb56fd0b37c2
|
|
BLAKE2b-256 checksum How to use checksums |
29c5afe929d99d7d14f9c626e9d321be4b83742a3b7122378faec3489af25289
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | scikit_survival-0.28.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
428eb32b097acf95b267c9dc35a1cda0a41666d9c017e46b060138a56dfb32fb
|
|
BLAKE2b-256 checksum How to use checksums |
21d13db1d3566989a73ac9064797ef8fc9bceb779e730f9979d32a9d9aa38a13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | scikit_survival-0.28.0-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 890.6 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f85c5d7f565e305c9bf89fbdc3c37edfcb88d380a32d55f609011d16e1b411a8
|
|
BLAKE2b-256 checksum How to use checksums |
46cdf8e2c66455579ca88cc46fb2c41ceaa68a32b1dc300eed83b5fdc9eef57d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp313-cp313-macosx_10_13_x86_64.whl
| Download URL | scikit_survival-0.28.0-cp313-cp313-macosx_10_13_x86_64.whl |
|---|---|
| Size | 892.5 kB |
| Tags | CPython 3.13 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
02b81bb8fe08c3c8b5356c6bc45150981d333c0e31f9c5d74c2bff2ed9eecb29
|
|
BLAKE2b-256 checksum How to use checksums |
5166736ed0bbaf8f131d025dc4f78891c8a0ecd10db27429d54ea4b07bdcacf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp312-cp312-win_amd64.whl
| Download URL | scikit_survival-0.28.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0a3dc0019cdd8ca9522a91a3503f57f72010736f6660efee385f1a2576c748a7
|
|
BLAKE2b-256 checksum How to use checksums |
269da7bee6a1e224e65c0b6098e75bba16a2d3c0ad1ae44d962b49a87676e8e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | scikit_survival-0.28.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
83548a95e7b69cb6e308a58f8b1dc8cddace5d729fa2bfb35eff825c66ee3920
|
|
BLAKE2b-256 checksum How to use checksums |
e7f5a9595bfeadec2fbd68c8e578bd82d17610e4d930d18720b6a7c73b4ae54a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | scikit_survival-0.28.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 888.3 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
002a071fc3cf723bad09e2bc93055b39a97fcebe3987cf71b85135506eee0883
|
|
BLAKE2b-256 checksum How to use checksums |
f549a8fd5f0d3b65fd79820d6054ba5b1a5f9898bc9548947e61b0cec1511c7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp312-cp312-macosx_10_13_x86_64.whl
| Download URL | scikit_survival-0.28.0-cp312-cp312-macosx_10_13_x86_64.whl |
|---|---|
| Size | 896.8 kB |
| Tags | CPython 3.12 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
69d55ef6132c0369135e36c071d303f780a29ab4fd2bf4018ad4c88d0ed2e04e
|
|
BLAKE2b-256 checksum How to use checksums |
7065b8b8cfc9a93c3685e9c9b61b5cdd33e6e5f40238a15d58eb2f48f06150e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp311-cp311-win_amd64.whl
| Download URL | scikit_survival-0.28.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7efa627ec151784e831fcae78545ed5b61ffd37928b866713643935fb206f4e9
|
|
BLAKE2b-256 checksum How to use checksums |
986047acd019957cbc67920ece7020a3705aefc931e1a7e56679992d97f210cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | scikit_survival-0.28.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d5816b07570ad8edf849502ea59abdd1391d74aaa6f9215224c38c0887fcb1d5
|
|
BLAKE2b-256 checksum How to use checksums |
c5de4da2f99a2c043b3032806f2408af09e7f0e3a2425edefaec5aa969b2106e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | scikit_survival-0.28.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 891.9 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
90621540f4b14c4b9d2e29dbcd68c8981d66462688375d64c9c1e9dae55168dd
|
|
BLAKE2b-256 checksum How to use checksums |
f2af03c2bad0c2b84d318cbc747463b19c2b6d620fd4eed2afb8fa8523416fa6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / scikit_survival-0.28.0-cp311-cp311-macosx_10_13_x86_64.whl
| Download URL | scikit_survival-0.28.0-cp311-cp311-macosx_10_13_x86_64.whl |
|---|---|
| Size | 891.4 kB |
| Tags | CPython 3.11 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
537cbb5e294d143a3bbce5a03e935f31d04c624e5a35a391908b128c74cc1039
|
|
BLAKE2b-256 checksum How to use checksums |
5cf204ade4d55e7a822ebd86a6da7c3f1ea070b5b6033911131899da98b2b4cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logSecurity for scikit-survival 0.28.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 17 files in this release have been uploaded with provenance metadata.
Attestation for scikit_survival-0.28.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.