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.4.0.tar.gz (4.1 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.4.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for metrixify-0.4.0.tar.gz
Algorithm Hash digest
SHA256 92267b5518992834725718cd2814e5840b12fc3fad1153d4c28a3d8209bf2e6c
MD5 dda71ea315639d91d8e51785e509942d
BLAKE2b-256 3c9cf0126d64918800ea9ecb14859b21d5dec4bde74084fef45b99c1694fb04e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: metrixify-0.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d39d812ff5deef0d29a0854bb18a0d59af7b4124ebd5d486c4aadc5f36575e0d
MD5 024202909cda7f6f65aeee83f24c7228
BLAKE2b-256 d77d178a4b6b150ea812cd99c154c2834bcc3d9e8d9c3fddab828ca0ed5c8f48

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