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

This version


Download files

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

Files for tensorcox, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size tensorcox-0.1.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page