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 Provenance Actions
losshub-0.0.6.tar.gz 3.6 kB Without provenance Details for losshub-0.0.6.tar.gz

Built distribution (wheel)

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

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

Security for losshub 0.0.6

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.

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