Metadata-Version: 2.1
Name: efficientmetrics
Version: 0.1.0
Summary: A package for efficient calculation of classification metrics.
Home-page: https://github.com/HuzeyfeAyaz/efficientmetrics
Author: Huzeyfe Ayaz
Author-email: huzeyfeayaz23@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.19.2

# EfficientMetrics

EfficientMetrics is a Python package for efficient calculation of classification metrics and skicit-learn's classification_report.

## Installation

```bash
pip install efficientmetrics
```

## Sample Usage

```python
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)
```
