| Constructor and Description |
|---|
HingeLoss()
Calculates Hinge loss.
|
HingeLoss(int margin,
float weight,
int batchAxis)
Calculates Hinge loss.
|
| Modifier and Type | Method and Description |
|---|---|
NDArray |
getLoss(NDList label,
NDList prediction)
Calculates loss between the label and prediction.
|
duplicate, excludeBatchAxis, getValue, hingeLoss, hingeLoss, l1Loss, l1Loss, l2Loss, l2Loss, reset, sigmoidBinaryCrossEntropyLoss, sigmoidBinaryCrossEntropyLoss, softmaxCrossEntropyLoss, softmaxCrossEntropyLoss, updatecheckLabelShapes, checkLabelShapes, getNamepublic HingeLoss(int margin,
float weight,
int batchAxis)
margin - the margin in hinge loss. Defaults to 1.0weight - the weight to apply on loss value, default 1batchAxis - the axis that represents mini-batch, default 0public HingeLoss()