loss
¶
Gluon provides pre-defined loss functions in the mxnet.gluon.parameter
module.
losses for training neural networks
|
Base class for loss. |
|
Calculates the mean squared error between pred and label. |
|
Calculates the mean absolute error between pred and label. |
The cross-entropy loss for binary classification. |
|
|
Computes the softmax cross entropy loss. |
|
The Kullback-Leibler divergence loss. |
|
Calculates smoothed L1 loss that is equal to L1 loss if absolute error exceeds rho but is equal to L2 loss otherwise. |
|
Calculates the hinge loss function often used in SVMs: |
|
Calculates the soft-margin loss function used in SVMs: |
|
Calculates the logistic loss (for binary losses only): |
|
Calculates triplet loss given three input tensors and a positive margin. |
|
Connectionist Temporal Classification Loss. |