Skip to main content

Implementation of DeepSurv using Keras

Project description

DeepSurvK

Implementation of DeepSurv using Keras

PyPI Build Status Documentation PyUp

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!

:bookmark_tabs: Documentation

You can find the complete package's documentation here.

: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

: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.1.2.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

deepsurvk-0.1.2-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: deepsurvk-0.1.2.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200712 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6

File hashes

Hashes for deepsurvk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2aa1ba55f5304d375143b42c75ff0720c35027c29a7e9fd21752e7a5573fe214
MD5 334037c57e0ba4ef9b0333b8be5c6233
BLAKE2b-256 c8bff52d8a91ae9a7079a764afb65606164981a6f9eef17ef072eb8d0e1ed6ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deepsurvk-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200712 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6

File hashes

Hashes for deepsurvk-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d0174b4c316774f6884ca996e57e6270a51f497caae7995982e1a8b577b16dfe
MD5 737507b6b98436dffc2d8acf01d31daf
BLAKE2b-256 7bf30ad89a017e65729c55bb9315586d21243ee97f6e87beb2441eac483d3c61

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