totalInstances
Constructor and Description |
---|
MaskedSoftmaxCrossEntropyLoss()
Creates a new instance of
SoftmaxCrossEntropyLoss with default parameters. |
MaskedSoftmaxCrossEntropyLoss(java.lang.String name)
Creates a new instance of
SoftmaxCrossEntropyLoss with default parameters. |
MaskedSoftmaxCrossEntropyLoss(java.lang.String name,
float weight,
int classAxis,
boolean sparseLabel,
boolean fromLogit)
Creates a new instance of
MaskedSoftmaxCrossEntropyLoss with the given parameters. |
Modifier and Type | Method and Description |
---|---|
NDArray |
evaluate(NDList labels,
NDList predictions)
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 MaskedSoftmaxCrossEntropyLoss()
SoftmaxCrossEntropyLoss
with default parameters.public MaskedSoftmaxCrossEntropyLoss(java.lang.String name)
SoftmaxCrossEntropyLoss
with default parameters.name
- the name of the losspublic MaskedSoftmaxCrossEntropyLoss(java.lang.String name, float weight, int classAxis, boolean sparseLabel, boolean fromLogit)
MaskedSoftmaxCrossEntropyLoss
with the given parameters.name
- the name of the lossweight
- the weight to apply on the loss value, default 1classAxis
- the axis that represents the class probabilities, default -1sparseLabel
- whether labels are integer array or probabilities, default truefromLogit
- whether predictions are log probabilities or un-normalized numbers, default
false