Classification Loss Function Library
Project description
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e9b57d0c3fc77904b2817da497a7db3974ac24e2e7b82c2c8c63a19f6985df4
|
|
| MD5 |
443509e0abe4f9e1aa26904e15e4f258
|
|
| BLAKE2b-256 |
6c9c5366924b60760687eaf080aee27c122a3fb10eb7f8f81b8add69d9905036
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7526e9809e1aa833a3712d60f436fdc6cea52f6b306141ab9c876a28c71e6a61
|
|
| MD5 |
41fcf0e9e66524e974da7d21e2473bd9
|
|
| BLAKE2b-256 |
aec0b37aa1d848dcbd4ae8df108d70934009a1ee56a742bc81c39dc9cc7d21a8
|