Skip to main content

Classification Loss Function Library

Project description

pypi version

Classification Loss Function Library.

Loss Functions for Image Classification

Rmse: $y = \sqrt{\frac{1}{n} \sum_{i=1}^{n} (y_i - y')^2}$

Mse: $y = \frac{1}{n} \sum_{i=1}^{n} (y_i - y')^2$

Installation

pip install losshub

Usage

from losshub.losses import mse, rmse
# outputs and labels
y_true = [1, 2, 3, 4, 5]
y_pred = [1, 2, 3, 4, 5]
# mse
mse(y_true, y_pred)
# rmse
rmse(y_true, y_pred)

References

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

losshub-0.0.6.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

losshub-0.0.6-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

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