dragon.losses

Functions

ctc_loss(…) : Compute the ctc loss with batched labels.

l1_loss(…) : Compute the loss of element-wise absolute value difference.

l2_loss(…) : Compute the loss of element-wise squared error.

nll_loss(…) : Compute the loss of negative likelihood.

sigmoid_cross_entropy_loss(…) : Compute the loss of sigmoid cross entropy.

sigmoid_focal_loss(…) : Compute the focal loss of sigmoid cross entropy. [Lin et.al, 2017].

smooth_l1_loss(…) : Compute the loss of element-wise error transited from L1 and L2. [Girshick, 2015].

softmax_cross_entropy_loss(…) : Compute the loss of softmax cross entropy.