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)
| File | Size | Uploaded | |
|---|---|---|---|
| losshub-0.0.6.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|