Skip to main content

A Python library for model evaluation, performance tracking, and metric visualizations, supporting classification and regression models with robust analytics and reporting.

Project description


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.52
  • 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.6a1},
  doi          = {10.5281/zenodo.14879819},
  url          = {https://doi.org/10.5281/zenodo.14879819}
}

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

model_metrics-0.0.6a1.tar.gz (86.7 kB view details)

Uploaded Source

Built Distribution

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

model_metrics-0.0.6a1-py3-none-any.whl (87.2 kB view details)

Uploaded Python 3

File details

Details for the file model_metrics-0.0.6a1.tar.gz.

File metadata

  • Download URL: model_metrics-0.0.6a1.tar.gz
  • Upload date:
  • Size: 86.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for model_metrics-0.0.6a1.tar.gz
Algorithm Hash digest
SHA256 90fcafb8feeeb4bd033aaea219ac41c0678e7cb0167453122ea4e03a93d46ceb
MD5 01f8fa5a4fd6074e49a41742fd54f519
BLAKE2b-256 cda8c126d65c5fd53080c2329ab086d7c2e40f23b76aa7d7f8d4ad2874f50dee

See more details on using hashes here.

File details

Details for the file model_metrics-0.0.6a1-py3-none-any.whl.

File metadata

File hashes

Hashes for model_metrics-0.0.6a1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2b3341dde78e5c05c894eee76b14dade528e09fc8daebf923fa8b8700b2cea1
MD5 949a651d06dd0f295e52a1e4220fc391
BLAKE2b-256 600d6685d068826cb7c25b6f927dfb0e78993efecb181e59227c6408fdb8d9bb

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