qmetrics.net

lifelines

Pure Python survival analysis and reliability library

lifelines screenshot

lifelines implements survival analysis in Python with parametric, semi-parametric, and non-parametric models. It handles right, left, and interval censored data and includes plotting helpers.

Overview

lifelines answers time-to-event questions under uncertainty: why an outcome happens now versus later, and which factors associate with longer or shorter lifetimes. It grew from actuarial and medical use cases and applies equally to subscriber churn, inventory censoring, social-science durations, and experiment timing.

The library is written in pure Python with a simple API, easy installation via pip or conda, and built-in plotting for common survival curves and fits. It bundles widely used univariate and regression models, including Cox-style survival regression, plus support for custom and piecewise models.

Documentation walks through quickstarts, model estimation, proportional hazards checking, time-varying covariates, and worked recipes. A discussion channel and issue tracker host community questions and bug reports.

Users import lifelines into notebooks or applications to fit models, predict survival functions, and visualize results without wrapping external statistics engines.

Key features

  • Parametric and non-parametric models
  • Cox and custom regression
  • Right, left, interval censoring
  • Built-in plotting methods
  • pip and conda installation
  • Univariate survival estimators
  • Time-varying regression support
  • Pure Python implementation

Use cases

  • Medical or actuarial survival studies
  • SaaS subscriber lifetime analysis
  • Churn and retention modeling
  • Reliability engineering metrics
  • A/B test time-to-action analysis

Tags

Similar software

Causal ML

Python uplift modeling and causal inference toolkit

Causal ML estimates conditional average treatment effects from experiments or observational data using machine learning estimators.

★ 6.1k⟳ yesterdayApache-2.0

GluonTS

Probabilistic deep learning time series toolkit for Python

GluonTS trains and runs probabilistic forecasting models on time series data, centered on PyTorch backends.

★ 5.3k⟳ 1 month agoApache-2.0

EconML

Python toolkit for heterogeneous causal treatment effect estimation

EconML estimates how treatment effects vary across individuals using machine learning on observational or experimental data. It unifies econometrics-style causal methods behind one Python API.

★ 4.9k⟳ 7 days agoMIT

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Ollama

Run open AI models locally or in the cloud

Ollama runs open language models such as Gemma, Qwen, DeepSeek and gpt-oss on macOS, Windows and Linux, locally or in the cloud. It offers a CLI, a REST API, and Python and JavaScript libraries.

★ 188.3k⟳ 2 days agoMIT
Open Source Alternative to:OpenAI API

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0