Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.


PyPI Downloads License: MIT

Welcome to Model Metrics! Model Metrics is a versatile Python library designed to streamline the evaluation and interpretation of machine learning models. It provides a robust framework for generating predictions, computing model metrics, analyzing feature importance, and visualizing results. Whether you're working with SHAP values, model coefficients, confusion matrices, ROC curves, precision-recall plots, and other key performance indicators.


Prerequisites

Before you install model_metrics, ensure your system meets the following requirements:

  • Python: Version 3.8 or higher.

Additionally, model_metrics depends on the following packages, which will be automatically installed when you install model_metrics:

  • matplotlib: version 3.5.3 or higher, but capped below 3.11
  • matplotlib-venn: version 1.0.0 or higher, but capped at 1.1.2
  • numpy: version 1.21.6 or higher, but capped below 2.2
  • pandas: version 1.3.5 or higher, but capped below 2.3
  • plotly: version 5.18.0 or higher, but capped below 5.25
  • scikit-learn: version 1.0.2 or higher
  • scipy: version 1.7.3 or higher
  • statsmodels: version 0.13 or higher, but capped below 0.15
  • shap: version 0.41.0 or higher, but capped below 0.53
  • tqdm: version 4.66.4 or higher

💾 Installation

To install model_metrics, simply run the following command in your terminal:

pip install model_metrics

📄 Official Documentation

https://lshpaner.github.io/model_metrics_docs

🌐 Authors' Website(s)

  1. Leon Shpaner

🙏 Acknowledgements

Gratitude goes to Dr. Ebrahim Tarshizi for his mentorship during the University of San Diego M.S. Applied Data Science Program, as well as the Shiley-Marcos School of Engineering for its support.

Special thanks to Dr. Alex Bui, and to Panayiotis Petousis, PhD, and Arthur Funnell for their invaluable guidance and their exceptional teamwork in maintaining a strong data science infrastructure at UCLA CTSI. Their leadership and support have helped foster the kind of collaborative environment that makes work like this possible. Additional thanks to all who offered guidance and encouragement throughout the development of this library. This project reflects a shared commitment to knowledge sharing, teamwork, and advancing model evaluation practices.

⚖️ License

model_metrics is distributed under the MIT License. See LICENSE for more information.

⚓ Support

If you have any questions or issues with model_metrics, please open an issue on this GitHub repository.

📚 Citing model_metrics

If you use model_metrics in your research or projects, please consider citing it.

@software{shpaner_2025_14879819,
  author       = {Shpaner, Leonid and Funnell, Arthur},
  title        = {Model Metrics},
  month        = feb,
  year         = 2025,
  publisher    = {Zenodo},
  version      = {0.0.6a8},
  doi          = {10.5281/zenodo.14879819},
  url          = {https://doi.org/10.5281/zenodo.14879819}
}

Metadata

Release files for model-metrics 0.0.6a8

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

Source distribution (sdist)

Source distribution for model-metrics 0.0.6a8
File Size Uploaded Provenance
model_metrics-0.0.6a8.tar.gz 127.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for model-metrics 0.0.6a8
File Interpreter ABI Platform
model_metrics-0.0.6a8-py3-none-any.whl Python 3 none any Details

Total release size: 257.3 kB

Release files / model_metrics-0.0.6a8.tar.gz

Download URL model_metrics-0.0.6a8.tar.gz
Size 127.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f39af1f495e5ce7a007eb3a47f84b1811552df6bef56ccf4c0012831e43f3258
BLAKE2b-256 checksum
How to use checksums
3159c134728dd6a98596300ed1633836c0b7c612dd93e5fe8f09d9f7653f12ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / model_metrics-0.0.6a8-py3-none-any.whl

Download URL model_metrics-0.0.6a8-py3-none-any.whl
Size 129.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da9f6a0b8bff66828b6f49f0dd2e8c59f41e3a193e35d8fa6e681d8f58123b21
BLAKE2b-256 checksum
How to use checksums
36a77aceaff6c63034e44619e48e70b17e7a7fac05a73d84d4a58035df329912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for model-metrics 0.0.6a8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release
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