Skip to main content

A toolkit for evaluating machine learning models for healthcare applications.

Project description

MedEvalKit

MedEvalKit is a modular and extensible Python toolkit for evaluating machine learning models, especially in healthcare applications. It provides unified APIs for computing metrics, calibration curves, bootstrap confidence intervals, and plotting diagnostic curves.

Features

  • Binary and multiclass classification support
  • Threshold optimization
  • Calibration error estimation
  • Bootstrap confidence intervals
  • ROC, PR, and calibration plotting
  • Simulate results at different incidence rates

Installation

pip install medevalkit

Usage Example

from medevalkit import Evaluate

clf.fit(X_train, y_train)
y_prob = clf.predict_proba(X_test)

evaluator = Evaluate(y_true=y_test, y_prob=y_prob, classification=True, threshold=threshold)
report = evaluator.generate_report(bootstrap=True)
print(report["text_report"])

GitHub Repo

Visit https://github.com/wesleyyeung/medevalkit for more examples.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

medevalkit-0.1.3.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

medevalkit-0.1.3-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file medevalkit-0.1.3.tar.gz.

File metadata

  • Download URL: medevalkit-0.1.3.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for medevalkit-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0b53ebf57fdf81fbaa0535a9a6acafabff73920d16dcb32eaa01412176905273
MD5 760814aabcc2f8a7c5c26d21daf7235f
BLAKE2b-256 37ec621acfb9a94cd6335f2612269aecd8aeaaec2bcdef265139da3e5a4013d7

See more details on using hashes here.

File details

Details for the file medevalkit-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: medevalkit-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for medevalkit-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 140b45c16828ee96f8e8945462d46175cca8d3646af91f34f8f109afbf0adba7
MD5 aed85f00caabe23225ed8c4554d26c30
BLAKE2b-256 386cbb942bbee7cdcc951eafe93867b0a97ce5f01ef6e0b59ccde22cce984791

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page