``brainpy.losses`` module
==================================

.. currentmodule:: brainpy.losses
.. automodule:: brainpy.losses

.. contents::
   :local:
   :depth: 1

Comparison
----------

.. autosummary::
   :toctree: generated/
   :nosignatures:
   :template: classtemplate.rst

   cross_entropy_loss
   cross_entropy_sparse
   cross_entropy_sigmoid
   nll_loss
   l1_loss
   l2_loss
   huber_loss
   mean_absolute_error
   mean_squared_error
   mean_squared_log_error
   binary_logistic_loss
   multiclass_logistic_loss
   sigmoid_binary_cross_entropy
   softmax_cross_entropy
   log_cosh_loss
   ctc_loss_with_forward_probs
   ctc_loss
   multi_margin_loss


.. autosummary::
   :toctree: generated/
   :nosignatures:
   :template: classtemplate.rst

   CrossEntropyLoss
   NLLLoss
   L1Loss
   MAELoss
   MSELoss


Regularization
--------------

.. autosummary::
   :toctree: generated/
   :nosignatures:
   :template: classtemplate.rst

   l2_norm
   mean_absolute
   mean_square
   log_cosh
   smooth_labels


