A package for efficient calculation of classification metrics.
Project description
EfficientMetrics
EfficientMetrics is a Python package for efficient calculation of classification metrics and skicit-learn's classification_report.
Installation
pip install efficientmetrics
Sample Usage
from efficientmetrics import EfficientMetrics
import numpy as np
y_true = np.array([0, 1, 2, 2, 0, 1])
y_preds = np.array([0, 2, 2, 2, 0, 0])
classes = np.array([0, 1, 2])
eff_metrics = EfficientMetrics(y_true, y_preds, [0, 1])
eff_metrics.calculate_confusion_matrix()
eff_metrics.classification_report()
print(eff_metrics.confmat)
print(eff_metrics.report)
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 efficientmetrics-0.1.0.tar.gz.
File metadata
- Download URL: efficientmetrics-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dcbdb396bcb0a4a4a7f655452ab452228d0a8a69fcf9d510d9c2ef44ac0c307
|
|
| MD5 |
ce8d54a8e225cd5b66c96d80d41a69c5
|
|
| BLAKE2b-256 |
518d4bc8e7c891ed4445c0d1a8709a04e8c65b108ebac9401d891fc1b84990bf
|
File details
Details for the file efficientmetrics-0.1.0-py3-none-any.whl.
File metadata
- Download URL: efficientmetrics-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef448d849bbf2a5a7e972ac610eff009b50e89b938e29da5130cdf11ae246ec9
|
|
| MD5 |
684cd7e8370b2f63f987b91d9889a8a4
|
|
| BLAKE2b-256 |
8f9475da6445d0e3abee7881512fbd0830b8941bd9e5382764b7d003213dae9c
|