Histogram Based Losses
This library contains implementations of some histogram-based loss functions:
- Earth Mover Distrance Loss
- Histgramm Loss (paper, original code)
- Inverse Histogram Loss (our impovements)
- Bidirectinal Histogramm Loss (our impovements)
- Continuous Histogram Loss (paper)
Also there are implementations of another losses to compare:
- Negative Log-Likelihood
- Binomial Deviance loss (paper)
Installation
Installation from source
The instalation directly from this repository:
https://github.com/stat-ml/hist-loss.git
cd histloss
python setup.py install
Pip Installation
pip install hist-loss
Example of usage
criterion = HistogramLoss()
positive = torch.sigmoid(torch.randn(10, requires_grad=True))
negative = torch.sigmoid(torch.randn(10, requires_grad=True))
loss = criterion(positive, negative)
loss.backward()
Metadata
Release files for hist-loss 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hist-loss-0.0.10.tar.gz | 8.9 kB | Without provenance | Details for hist-loss-0.0.10.tar.gz |
Release files / hist-loss-0.0.10.tar.gz
| Download URL | hist-loss-0.0.10.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17e979fd952c37e3de02c22e4ef565e981b400945517cddfeafafaf79af661de
|
|
BLAKE2b-256 checksum How to use checksums |
99c0ba38f7cfc86cf02513a8cf226a349071b59550e1e1fd435b22e6f44ed865
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Security for hist-loss 0.0.10
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.