totalInstances
Constructor and Description |
---|
SigmoidBinaryCrossEntropyLoss()
Performs Sigmoid cross-entropy loss for binary classification.
|
SigmoidBinaryCrossEntropyLoss(java.lang.String name)
Performs Sigmoid cross-entropy loss for binary classification.
|
SigmoidBinaryCrossEntropyLoss(java.lang.String name,
float weight,
boolean fromSigmoid)
Performs Sigmoid cross-entropy loss for binary classification.
|
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 SigmoidBinaryCrossEntropyLoss()
public SigmoidBinaryCrossEntropyLoss(java.lang.String name)
name
- the name of the losspublic SigmoidBinaryCrossEntropyLoss(java.lang.String name, float weight, boolean fromSigmoid)
name
- the name of the lossweight
- the weight to apply on the loss value, default 1fromSigmoid
- whether the input is from the output of sigmoid, default false