Skip to main content

MEDS Evaluation

PyPI - Version python MEDS v0.4 tests code-quality hydra license PRs contributors

This package provides an evaluation API for models produced in the MEDS ecosystem. If predictions are produced in accordance with the provided pyarrow schema, this package can be used to evaluate a model's performance in a consistent, Health-AI focused manner.

To use, simply:

  1. Install: pip install meds-evaluation
  2. Produce predictions that satisfy the included schema.
  3. Run the meds-evaluation-cli tool: meds-evaluation-cli predictions_path="$PREDICTIONS_FP_GLOB" output_dir="$OUTPUT_DIR"

A JSON file with the output evaluations will be produced in the given dir!

[!NOTE] This is a work-in-progress package and currently only supports evaluation of binary classification tasks.

Prediction schema

Inputs to MEDS Evaluation must follow the prediction schema, which by default has five fields:

  1. subject_id: ID of the subject (patient) associated with the event
  2. prediction_time: time at which the prediction as being made
  3. boolean_value: ground truth boolean label for the prediction task
  4. predicted_boolean_value (optional): predicted boolean label generated by the model
  5. predicted_boolean_probability (optional): predicted probability logits generated by the model

This is equivalent to the following polars schema:

Schema(
    [
        ("subject_id", Int64),
        ("prediction_time", Datetime(time_unit="us")),
        ("boolean_value", Boolean),
        ("predicted_boolean_value", Boolean),
        ("predicted_boolean_probability", Float64),
    ]
)

Note that while predicted_boolean_value and predicted_boolean_probability are optional, at least one of them must be present and contain non-null values in order to generate the results. In addition, a schema can contain additional fields but at the moment these will not be used in MEDS Evaluation.

MEDS Ecosystem

MEDS Evaluation pipeline is intended to be used together with MEDS-DEV, but can also be adapted to use as a standalone package.

Please refer to the MEDS-DEV tutorial to learn how to extract and prepare the data in the MEDS format and obtain model predictions ready to be evaluated.

Metadata

Release files for meds-evaluation 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meds-evaluation 0.0.6
File Size Uploaded
meds_evaluation-0.0.6.tar.gz 97.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meds-evaluation 0.0.6
File Interpreter ABI Platform
meds_evaluation-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 107.0 kB

Release files / meds_evaluation-0.0.6.tar.gz

Download URL meds_evaluation-0.0.6.tar.gz
Size 97.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d4d973b5ac9e56a6288e3eace99a02b4d93985c6f5aa92486ec03016b9dd3066
BLAKE2b-256 checksum
How to use checksums
273fb8122c0aa1f114dd6c822a67976cb57c4cb2b14585f22b6aaaf9e7b91d67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 21, 2026.

Transparency log

Release files / meds_evaluation-0.0.6-py3-none-any.whl

Download URL meds_evaluation-0.0.6-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca53f0e1b10265a3a090e759e1cbd2c1c2593b66564ca17be91aceac1e969f1d
BLAKE2b-256 checksum
How to use checksums
ee6503287ebfe8031cd9850621b3ddab3fa1e2a3442314d1898a6fb5d6783a49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page