Metadata-Version: 2.1
Name: hist-loss
Version: 0.0.10
Summary: Package with losses for distribution learning
Home-page: https://github.com/stat-ml/histloss
Author: Maxim Panov and Nikita Mokrov and Roman Lisov
Author-email: nikita.mokrov@skoltech.ru
License: Apache License 2.0
Description: 
        [![PyPI version](https://badge.fury.io/py/hist-loss.svg)](https://badge.fury.io/py/hist-loss)
        [![Build Status](https://travis-ci.com/stat-ml/hist-loss.svg?token=oPGnutpqNa9oAaMSKt7n&branch=main)](https://travis-ci.com/stat-ml/histloss)
        [![PyPI license](https://img.shields.io/pypi/l/hist-loss.svg)](https://pypi.python.org/pypi/hist-loss/)
        
        # Histogram Based Losses
        
        This library contains implementations of some histogram-based loss functions:
        - Earth Mover Distrance Loss
        - Histgramm Loss ([paper](https://arxiv.org/pdf/1611.00822.pdf), [original code](https://github.com/madkn/HistogramLoss))
        - Inverse Histogram Loss (our impovements)
        - Bidirectinal Histogramm Loss (our impovements)
        - Continuous Histogram Loss ([paper](https://arxiv.org/pdf/2004.02830v1.pdf))
        
        Also there are implementations of another losses to compare:
        - Negative Log-Likelihood
        - Binomial Deviance loss ([paper](https://arxiv.org/pdf/1407.4979.pdf))
        
        ## 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
        
        ```Python
        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()
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
