MedPipe
Table of content
Overview
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.
Installation
To install MedPipe use pip:
$ 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.
Metadata
Release files for medpipe 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| medpipe-0.4.1.tar.gz | 90.6 kB | With provenance | Details for medpipe-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| medpipe-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for medpipe-0.4.1-py3-none-any.whl |
Total release size: 189.9 kB
Release files / medpipe-0.4.1.tar.gz
| Download URL | medpipe-0.4.1.tar.gz |
|---|---|
| Size | 90.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bfa901489741503368c875934d14ca61f1d478533ef3619178763c2f577ab09
|
|
BLAKE2b-256 checksum How to use checksums |
90cb9e4c42e6b553b37ae6d55799cd3532d2cd732b6b0788b845580b6567921a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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 Publish Attestation
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.
Transparency logRelease files / medpipe-0.4.1-py3-none-any.whl
| Download URL | medpipe-0.4.1-py3-none-any.whl |
|---|---|
| Size | 99.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
492dfb332821dfb0b26ab3f590ef2ffb7dcca8d98f4b7a84a4e1af696bf336f3
|
|
BLAKE2b-256 checksum How to use checksums |
7ee1d3cac6b3c371f310b028bf3d0d6f5b04f5220e6d93c01f4c1cbfd650f9c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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 Publish Attestation
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.
Transparency logSecurity for medpipe 0.4.1
Provenance
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for medpipe-0.4.1.tar.gz
PyPI Publish Attestation
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.
Transparency logA note on package security
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.