An easy package to use for to get metrics from your models
Project description
EzMetrics
The eaziest metrics library ever
Ez metrics is a library that calculates the fitness metrics of your ML model.
Features
- Support for fixed binary classification as well as probability based classification
- Support for regression models
- Up to 6 different metrics
And of course EzMetrics itself is open source with a public repository on GitHub.
Installation
EzMetrics requires no extra libraries to run.
pip install EzMetrics
from EzMetrics import Metrics as ezm
Usage
Create an object containing a list with the predictions of your model and a list containing the actual values por each prediction.
exmpl_obj = ezm( predicted_list, observed_list)
Then just choose a metric suited for your data and use it. In case of Mean Absolute Error it would be as follows.
exmpl_obj.mae()
Metrics
EzMetrics has 6 different metrics available, which one to use depends on your data type.
Discrete classification | |
---|---|
Accuracy | Metrics.accuracy() |
F1 score | Metrics.f1() |
Probability classification | |
---|---|
Area Under the Curve (AUC) | Metrics.roc_auc() |
Regression | |
---|---|
R squared | Metrics.r2() |
Mean Absolute Error | Metrics.mae() |
Mean Squared Error | Metrics.mse() |
License
MIT
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
File details
Details for the file EzMetrics-1.0.tar.gz
.
File metadata
- Download URL: EzMetrics-1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd3ed960eb136dc08c71a7cff47eb0e91bd0b433b2508ad3e4b68f6aea408b97 |
|
MD5 | bdd07ee9a62e247675ea5a75805f1b6c |
|
BLAKE2b-256 | 55d045266f97cc89c924135f756800d7b16ab85983f5f0e2431bfd30f12a1674 |