Skip to main content

A Python library for automatic model evaluation

Project description

metrixify 🚀 A lightweight library for automatic model evaluation

📌 Overview metrixify is an easy-to-use Python library that automatically evaluates machine learning models. It supports both classification and regression models and returns evaluation metrics in a dictionary format.

📥 Installation You can install metrixify directly from PyPI:

pip install metrixify

🛠 Usage 1️⃣ Import the Library

""" from metrixify import evaluate_model """

2️⃣ Classification Model Evaluation

""" from metrixify import evaluate_model

actual_vals = [0, 1, 1, 0, 1] predicted_vals = [0, 1, 0, 0, 1]

metrics = evaluate_model("classification", actual_vals, predicted_vals) print(metrics) """

✅ Output:

"""{ 'accuracy': 0.8, 'precision': 0.75, 'recall': 0.8, 'f1_score': 0.76, 'roc_auc': 'Error: Need probability estimates', 'log_loss': 'Error: Need probability estimates' }"""

3️⃣ Regression Model Evaluation """ actual_vals = [3.2, 4.5, 6.1, 7.8, 9.0] predicted_vals = [3.0, 4.8, 5.9, 7.5, 9.2]

metrics = evaluate_model("regression", actual_vals, predicted_vals) print(metrics) """"

✅ Output: """ { 'mae': 0.18, 'mse': 0.036, 'rmse': 0.19, 'r2_score': 0.97, 'adjusted_r2': 0.95, 'mape': 2.5 } """

🛠 Contributing Contributions are welcome! If you find bugs or want to improve metrixify, feel free to fork the repository and submit a pull request.

📜 License This project is licensed under the MIT License.

🌟 Support If you like this project, please give it a ⭐ on GitHub!

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

metrixify-0.5.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

metrixify-0.5.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file metrixify-0.5.0.tar.gz.

File metadata

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

File hashes

Hashes for metrixify-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2f2832d57b308a16476e815ef5b01a6207da48a517c2a4872fabbbbe1ef04c68
MD5 1173c2ba0dcd6b1fb604a01a273d710b
BLAKE2b-256 72826b6221ffd50a6df8280f31600743d8f8c33708f28221a4ad6149588e9eb7

See more details on using hashes here.

File details

Details for the file metrixify-0.5.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for metrixify-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be155bd8225595fffdfc1ab9f25f085fd0263ccef2adac7c2662dbef35f90628
MD5 55432fb583dd0a8b1114488017cfc583
BLAKE2b-256 54b51c8f708eb30c283f579638c4d02dd2e2aa53c630e4de8090e43e38316880

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