easynlp.utils.losses
===========================


MSE Loss
---------------------------------------------------------

.. automodule:: easynlp.utils.losses.mse_loss
    :members:
    :undoc-members:


CrossEntropy Loss
---------------------------------------------------------

.. automodule:: easynlp.utils.losses.cross_entropy
    :members:
    :undoc-members:

Vanilla KD Loss
---------------------------------------------------------

.. automodule:: easynlp.utils.losses.vanilla_loss
    :members:
    :undoc-members:

MultiLabel Sigmoid CrossEntropy Loss
---------------------------------------------------------

.. automodule:: easynlp.utils.losses.multi_label_sigmoid_cross_entropy
    :members:
    :undoc-members:
    :show-inheritance:

Soft Input CrossEntropy Loss
---------------------------------------------------------

.. automodule:: easynlp.utils.losses.soft_input_cross_entropy
    :members:
    :undoc-members:
    :show-inheritance:

Hinge Loss for Embeddings
---------------------------------------------------------

.. automodule:: easynlp.utils.losses.matching_embedding_hinge_loss
    :members:
    :undoc-members:
    :show-inheritance:
