Implementation of DeepSurv using Keras
Motivation • Features • Documentation • License • References • Credits
🙏 Motivation
DeepSurv is a Cox Proportional Hazards deep neural network used for modeling interactions between a patient's covariates and treatment effectiveness. It was originally proposed by Katzman et. al (2018) and implemented in Theano (using Lasagne).
Unfortunately, Theano is no longer supported. There have been some attempts in recreating DeepSurv in other DL platforms, such as czifan's DeepSurv.pytorch. However, given its popularity and ease of use, I think TensorFlow 2's Keras is a great option for this task.
mexchy1000 created DeepSurv_Keras. However, it is a very raw prototype: it is not properly documented nor validated. Moreover, it is not being actively supported anymore. Therefore, I used it as a rough starting point for the development of DeepSurvK.
This is my first Python package. I am sure there are many places where it could be improved. Feedback is always welcome!
🎉 Features
- Implemented using Keras (using TensorFlow 2)
- Includes the original datasets together with a proper description of the variables
- Designed with data as pandas DataFrames in mind
- Visualization tools for the most common plots for fast and easy exploration and prototyping
- Treatment recommender
- (Basic) hyperparameter optimization using grid and randomized search
📑 Documentation
You can find the complete package's documentation here. Unfortunately, I haven't had as much time as I would like to work on it. Alternatively, I strongly recommend you take look at the example notebooks.
📃 License
This package uses the MIT license
✒️ References
If you are using DeepSurvK, please cite the original DeepSurv paper, as well as the current repository as follows:
- Katzman, Jared L., et al. "DeepSurv: personalized treatment recommender system using a Cox proportional hazards deep neural network." BMC medical research methodology 18.1 (2018): 24. [BibTeX]
- Arturo Moncada-Torres. DeepSurvK. Accessed on [MONTH, 20XX].
🏷️ Credits
This package was developed in Spyder (a fantastic open-source Python IDE) using Cookiecutter and the arturomoncadatorres/cookiecutter-pypackage project template.
Metadata
Release files for deepsurvk 0.2.2
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 | |
|---|---|---|---|---|
| deepsurvk-0.2.2.tar.gz | 115.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deepsurvk-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 137.5 kB
Release files / deepsurvk-0.2.2.tar.gz
| Download URL | deepsurvk-0.2.2.tar.gz |
|---|---|
| Size | 115.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9117ed6cad6346c8a2bebb166bc9d984ae7f2bc4fdb85e810d6a288e749503b0
|
|
BLAKE2b-256 checksum How to use checksums |
ad2559412de2ec106193446b84deb07ba1d3ab447752082865d4587d9bedd0b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10
|
Release files / deepsurvk-0.2.2-py2.py3-none-any.whl
| Download URL | deepsurvk-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 22.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
44cc9cf7dd6ad51a13c7a0b84646107ace1768325a83da86bc42fc73b6181fd7
|
|
BLAKE2b-256 checksum How to use checksums |
36cd55624b3966e7d45f5d25e8f2165fedac552ebc46b264556ae8dc56f08996
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10
|
Security for deepsurvk 0.2.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.