Survival analysis built on top of scikit-learn
Project description
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.7 or later
ecos
joblib
numexpr
numpy 1.16 or later
osqp
pandas 0.25 or later
scikit-learn 1.0
scipy 1.0 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
HTML documentation for the latest release: https://scikit-survival.readthedocs.io/en/stable/
HTML documentation for the development version (master 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}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file scikit-survival-0.17.1.tar.gz
.
File metadata
- Download URL: scikit-survival-0.17.1.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b1fab7992816da863915828f210bc10fe6f32c4619e9af01a32ae990a87f379 |
|
MD5 | fcaba806f939f29f0ee74833c8b8f694 |
|
BLAKE2b-256 | d45074857acf6937249343da467c2844801b8c24234092e45843c1ceae211ed0 |