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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file losshub-0.0.6.tar.gz.

File metadata

  • Download URL: losshub-0.0.6.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for losshub-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3e9b57d0c3fc77904b2817da497a7db3974ac24e2e7b82c2c8c63a19f6985df4
MD5 443509e0abe4f9e1aa26904e15e4f258
BLAKE2b-256 6c9c5366924b60760687eaf080aee27c122a3fb10eb7f8f81b8add69d9905036

See more details on using hashes here.

File details

Details for the file losshub-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: losshub-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for losshub-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7526e9809e1aa833a3712d60f436fdc6cea52f6b306141ab9c876a28c71e6a61
MD5 41fcf0e9e66524e974da7d21e2473bd9
BLAKE2b-256 aec0b37aa1d848dcbd4ae8df108d70934009a1ee56a742bc81c39dc9cc7d21a8

See more details on using hashes here.

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