Skip to main content

Implementation of DeepSurv using Keras

Project description

Implementation of DeepSurv using Keras

PyPI version Build Status Documentation PyUp

MotivationFeaturesDocumentationLicenseReferencesCredits


:pray: 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!

:tada: 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

:bookmark_tabs: Documentation

You can find the complete package's documentation here.

:page_with_curl: License

This package uses the MIT license

:black_nib: References

If you are using DeepSurvK, please cite the original DeepSurv paper, as well as the current repository as follows:

:label: Credits

This package was developed in Spyder (a fantastic open-source Python IDE) using Cookiecutter and the arturomoncadatorres/cookiecutter-pypackage project template.

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

deepsurvk-0.2.1.tar.gz (114.7 kB view details)

Uploaded Source

Built Distribution

deepsurvk-0.2.1-py2.py3-none-any.whl (22.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file deepsurvk-0.2.1.tar.gz.

File metadata

  • Download URL: deepsurvk-0.2.1.tar.gz
  • Upload date:
  • Size: 114.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for deepsurvk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6293baceb5d97e68f564651f60deac38fcf3e72372e3c66164ea2e0c950f04c7
MD5 0baf1d69651ddd8a1c8fffc01cf0462b
BLAKE2b-256 0a2b3d5ee50514bf2e2bad1e1ca05c10ad54f2482c8a751c3640ce8af5b8189e

See more details on using hashes here.

File details

Details for the file deepsurvk-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: deepsurvk-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for deepsurvk-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 358660b14bde8e53379bb5c2c521c3fd915516478b23e02290a1058b6d8bfe7e
MD5 c23d87f3f82577593175d9ee63499080
BLAKE2b-256 68e0946110b1ee94cb30a646fb1973b6a3009f313a24ba109d15f9dd91c2d459

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page