Loss Functions#
|
Computes the binary cross entropy loss. |
|
Computes the cosine similarity between the two inputs. |
|
Computes the cross entropy loss. |
|
Computes the negative log likelihood loss for a Gaussian distribution. |
|
Computes the hinge loss between inputs and targets. |
|
Computes the Huber loss between inputs and targets. |
|
Computes the Kullback-Leibler divergence loss. |
|
Computes the L1 loss. |
|
Computes the log cosh loss between inputs and targets. |
|
Calculate the margin ranking loss that loss given inputs \(x_1\), \(x_2\) and a label \(y\) (containing 1 or -1). |
|
Computes the mean squared error loss. |
|
Computes the negative log likelihood loss. |
|
Computes the smooth L1 loss. |
|
Computes the triplet loss for a set of anchor, positive, and negative samples. |