totalInstances
Constructor and Description |
---|
HingeLoss()
Calculates Hinge loss.
|
HingeLoss(java.lang.String name)
Calculates Hinge loss.
|
HingeLoss(java.lang.String name,
int margin,
float weight)
Calculates Hinge loss.
|
Modifier and Type | Method and Description |
---|---|
NDArray |
evaluate(NDList label,
NDList prediction)
Calculates the evaluation between the labels and the predictions.
|
addAccumulator, getAccumulator, hingeLoss, hingeLoss, hingeLoss, l1Loss, l1Loss, l1Loss, l2Loss, l2Loss, l2Loss, maskedSoftmaxCrossEntropyLoss, maskedSoftmaxCrossEntropyLoss, maskedSoftmaxCrossEntropyLoss, resetAccumulator, sigmoidBinaryCrossEntropyLoss, sigmoidBinaryCrossEntropyLoss, sigmoidBinaryCrossEntropyLoss, softmaxCrossEntropyLoss, softmaxCrossEntropyLoss, softmaxCrossEntropyLoss, updateAccumulator
checkLabelShapes, checkLabelShapes, getName
public HingeLoss()
public HingeLoss(java.lang.String name)
name
- the name of the losspublic HingeLoss(java.lang.String name, int margin, float weight)
name
- the name of the lossmargin
- the margin in hinge loss. Defaults to 1.0weight
- the weight to apply on loss value, default 1