Skip to main content

Metrics for Evaluating Model Quality

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

irrectum-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

irrectum-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file irrectum-0.1.0.tar.gz.

File metadata

  • Download URL: irrectum-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.4

File hashes

Hashes for irrectum-0.1.0.tar.gz
Algorithm Hash digest
SHA256 710b4d2a1ff7930c9b368fe01ac35a1cdd0368601fc08c381b81b05926ef4d5d
MD5 55b7113bb5505e2a80640941b7f0f56f
BLAKE2b-256 2eb83ea38c8d03e4a17a8c739d179ae8aa26e2b6339a51e1b869c34ff7f418f5

See more details on using hashes here.

File details

Details for the file irrectum-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: irrectum-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.4

File hashes

Hashes for irrectum-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8738695a92539fd763752d290d0174a574c574382d9c7533138ac6356d6dd68
MD5 2390f7f9bb4143956d3f8a7ee2440e23
BLAKE2b-256 77fc04b0a4c0832b983d2c6377288cdea53b3f71487e0977d43b38e2a980891e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page