Skip to main content

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

Metadata

Release files for losshub 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for losshub 0.0.6
File Size Uploaded
losshub-0.0.6.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for losshub 0.0.6
File Interpreter ABI Platform
losshub-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / losshub-0.0.6.tar.gz

Download URL losshub-0.0.6.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3e9b57d0c3fc77904b2817da497a7db3974ac24e2e7b82c2c8c63a19f6985df4
BLAKE2b-256 checksum
How to use checksums
6c9c5366924b60760687eaf080aee27c122a3fb10eb7f8f81b8add69d9905036
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / losshub-0.0.6-py3-none-any.whl

Download URL losshub-0.0.6-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7526e9809e1aa833a3712d60f436fdc6cea52f6b306141ab9c876a28c71e6a61
BLAKE2b-256 checksum
How to use checksums
aec0b37aa1d848dcbd4ae8df108d70934009a1ee56a742bc81c39dc9cc7d21a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page