BNNSLossFunctionHinge
Performs Hinge loss computation between labels and unbounded zero-centered binary predictions.
Declaration
var BNNSLossFunctionHinge: BNNSLossFunction { get }Discussion
BNNSLossFunctionHinge performs Hinge loss computation between labels (ground truth output tensor, 0 or 1) and logits (unbounded 0-centered binary predictions).
You can scale the loss with either a scalar value or weight matrix, and reduce the loss according to a reduction function.