Configuration-driven, TRIPOD+AI compliant ML pipelines for tabular clinical data.
pip install medpipe==0.4.1 Copy PIP instructions
The MedPipe package is a layer to help create AI models (classifiers and regressors) for clinical applications from tabular data. It covers data loading and preprocessing, model creation and training, recalibration, and visualisation.
$ pip install medpipe Key features TRIPOD+AI Guideline Compliant: Designed from the ground up to follow rigorous clinical machine learning reporting standards. Scikit-Learn Compatible: Integrates seamlessly with standard Scikit-Learn estimators, transformers, and pipelines. Declarative TOML Configuration: Define entire experiments, from preprocessing to plotting aesthetics, in a single validated TOML configuration file. Multi-Outcome Pipelines: Model distinct clinical outcomes in a single run with independent hyperparameter and recalibration overrides. Integrated Recalibration & Fairness: Native probability recalibration and stratified subgroup analysis to evaluate algorithmic fairness across patient cohorts. Clinical Metrics & Visualizations: Automatic generation of Decision Curve Analysis (DCA), reliability diagrams, ROC/PR curves, and bootstrapped 95% confidence intervals. Standardized Artifact Tracking: Automatic, structured output management for models, metrics, environment metadata, and execution logs in a unified artifacts/ hierarchy. Quickstart example Minimal example based on the provided configuration file (examples/default_classifier_config.toml):
from pydantic import ValidationError from medpipe import MedpipeClassifier try: # Catch any Pydantic configuration errors pipe = MedpipeClassifier("default_classifier_config.toml") pipe.run() except ValidationError as err: print(err) exit() Acknowledgements This package was developed using Claude Sonnet 5.5. The code was reviewed and edited by humans.
All 2 files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




