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.1.tar.gz (26.0 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.1-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: medevalkit-0.1.3.1.tar.gz
  • Upload date:
  • Size: 26.0 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.1.tar.gz
Algorithm Hash digest
SHA256 87add8d3e9accbf589335c8c16d164aa7c0e4e90b1e4e539a7e20090da134eb0
MD5 4819662ec511e5575bd4ab1192053a8c
BLAKE2b-256 a7080d7070d56a52dbdc6675c71dc03f2b860efcef89411698c11412329ad9cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: medevalkit-0.1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 25.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8352c38e66d96e06faea7fbd06bd6e979d5fe968acfa3dc51f89ec10ec0f03e
MD5 860a0843c7fa3dedd977a535a8e034f9
BLAKE2b-256 bb91a91c492dbcf0ac20e6b80fb61dd23c95be630f7c3d41c7d7db42393a3382

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