Skip to main content

Coxs partial likelihood in Tensorflow

Project description


Tensorflow implementation of Coxs' partial likelihood [^1] based on a counting process representation[^2]. Combining Cox's model with the counting process representation allows for more complex censoring patterns as well as the inclusion of time-varying covariates. Implementing this in Tensorflow with batch optimization methods gives us a powerful approach that can scale to big data problems and make full use of distributed computing environments. Since the algorithm is fully written in Tensorflow it is easy to integrate it into larger workflows and combine it with Neural Networks etc.


pip install TensorCox


Documentation for TensorCox is available at


[^1]: Cox, D. R. (1972). Regression models and life‐tables. Journal of the Royal Statistical Society: Series B (Methodological), 34(2), 187-202. [^2]: Andersen, P. K., & Gill, R. D. (1982). Cox's regression model for counting processes: a large sample study. The annals of statistics, 1100-1120.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tensorcox-0.1.tar.gz (4.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page