Irrectum - Metrics for Evaluating Model Quality
Description
Irrectum provides a set of metrics for evaluating the quality of machine learning model predictions. These metrics include both standard and specialized indicators that help analyze model performance and identify its strengths and weaknesses.
Features
- RMSE (Root Mean Square Error): Assesses the error of the model's values relative to the actual values.
- NRMSE (Normalized RMSE): Normalizes RMSE, allowing for comparison of models with different scales.
- Pearson Correlation Coefficient: Measures the degree of linear dependence between predicted and actual values.
- Covariance: Evaluates how two variables change together.
- Coefficient of Determination (R²): Shows the proportion of variance in the dependent variable explained by the model.
- Adjusted R²: Takes into account the number of predictors in the model, allowing for comparison of models with different numbers of factors.
- Residual Sum of Squares (RSS): Assesses the total error of the model.
- MAPE (Mean Absolute Percentage Error): Measures the percentage error of the model relative to the original.
- MAE (Mean Absolute Error): Evaluates the average error between predicted and actual values.
- AIC & BIC: Information criteria for comparing models considering their complexity.
Installation
To install the necessary dependencies, use the following command:
pip install irrectum
Example of using the metrics:
import numpy as np
from abc_metrics import RMSE, MAE
# Example data
testTarget = np.array([3, -0.5, 2, 7])
testPrediction = np.array([2.5, 0.0, 2, 8])
# Creating instances of the metrics
rmse_metric = RMSE()
mae_metric = MAE()
# Evaluating model quality
rmse_value = rmse_metric.test(testTarget, testPrediction)
mae_value = mae_metric.test(testTarget, testPrediction)
print(f"RMSE: {rmse_value}, MAE: {mae_value}")
Support
If you have any questions or need assistance, please create an issue in the repository.
Contributing
We welcome contributions! Please refer to our contribution guidelines.
Authors and Acknowledgment
Show your appreciation to those who have contributed to the project.
License
This project is licensed under the MIT License.
Metadata
Release files for irrectum 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| irrectum-0.1.2.tar.gz | 5.8 kB | Without provenance | Details for irrectum-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| irrectum-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for irrectum-0.1.2-py3-none-any.whl |
Total release size: 11.7 kB
Release files / irrectum-0.1.2.tar.gz
| Download URL | irrectum-0.1.2.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07daa1593e785eb98fbf6281afd5ad244adce53ddeb5f2aeb20a21eee006fd5d
|
|
BLAKE2b-256 checksum How to use checksums |
fd2c0ff0784a180ade894b0a88c1fe061a6228ebdae52086388aa9167f2af3e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Release files / irrectum-0.1.2-py3-none-any.whl
| Download URL | irrectum-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91974560cb7d0bac038d614359c20e9090b0b29c5198f38676202283bdf31263
|
|
BLAKE2b-256 checksum How to use checksums |
469aac1bbed2faec18862713ebcd7283f413f66b98b01801e9c87d8f8ff1c693
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Security for irrectum 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.