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)

evaluator = Evaluate(clf, X_test, y_test, 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.2.tar.gz (22.6 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.2-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for medevalkit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f528af80b70050f373b12b2322799d0d895cea73ea6b320d47483d9588c75629
MD5 6e4b02046360f9ed4b76d536256bd566
BLAKE2b-256 223df70a709d2cf43701b1090a6a429da95504f021e265f2c30c69c3380dc84d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for medevalkit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a288797177de72e3836cdd680e6d062623fad8bb3eaf9b9fecfe5572754169e
MD5 d5abe86cca7f017b7fb663f7f5ff7b56
BLAKE2b-256 91887268c72a2dabde8f6113276ff8fc91281887b473c431dba46e6ba1adaeb3

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