mltpy — Conditional Transformation Models#
Python port of Hothorn’s R mlt package. Fit flexible conditional
distributions to continuous, censored, or covariate-dependent data using
monotone Bernstein-polynomial transformations.
From a single fitted model, mltpy exposes the cumulative distribution, density, quantile, and hazard functions — and can simulate synthetic observations. The methodology is described in Hothorn, Kneib & Bühlmann (2014) and Hothorn (2020).
Getting started
Vignettes
- Flexible normal-distribution regression with Box-Cox
- Survival analysis with Coxph
- Conditional transformation model with covariates
- Interacting terms — non-proportional hazards and stratified baselines
- Scaling terms — heteroskedastic regression and non-proportional survival
- Profile-likelihood CIs — Wald vs. profile vs. sandwich
API Reference
Design decisions
Project