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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92267b5518992834725718cd2814e5840b12fc3fad1153d4c28a3d8209bf2e6c
|
|
| MD5 |
dda71ea315639d91d8e51785e509942d
|
|
| BLAKE2b-256 |
3c9cf0126d64918800ea9ecb14859b21d5dec4bde74084fef45b99c1694fb04e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d39d812ff5deef0d29a0854bb18a0d59af7b4124ebd5d486c4aadc5f36575e0d
|
|
| MD5 |
024202909cda7f6f65aeee83f24c7228
|
|
| BLAKE2b-256 |
d77d178a4b6b150ea812cd99c154c2834bcc3d9e8d9c3fddab828ca0ed5c8f48
|