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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file medevalkit-0.1.3.2.tar.gz.
File metadata
- Download URL: medevalkit-0.1.3.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2346f34a70633509df6c4ac84a067fa547a893d841a1be6471f535e3c59c74b
|
|
| MD5 |
ca4c51c83272c32e8e689a700939e390
|
|
| BLAKE2b-256 |
3ad338dbc88ae45bfee4de4384a89be70d1299a7db9be554f2dba254125022c5
|
File details
Details for the file medevalkit-0.1.3.2-py3-none-any.whl.
File metadata
- Download URL: medevalkit-0.1.3.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f25ee05221ce85d34682e1a8e1e2582727971b9f065054cdfac0946817a018be
|
|
| MD5 |
47138f88fec035fad1e04ea0356ff942
|
|
| BLAKE2b-256 |
3847b3b78972493adf9a350f208fe79b590bc0769cdfcbd60324b8d34b225ec7
|