Class BinaryCrossEntropyLoss

java.lang.Object
deepnetts.net.loss.BinaryCrossEntropyLoss
All Implemented Interfaces:
LossFunction, Serializable

public class BinaryCrossEntropyLoss extends Object implements LossFunction, Serializable
Cross Entropy Loss is a loss function used for binary classification tasks (two classes, single output which represents probability ). It should be used in combination with sigmoid output activation function. The formula: E = (1/n) * -SUM( t * ln(y) + (1-t) * ln(1-y) ) where t is target, and y actual output Bishop, C. pg. 231, eq. 6.120
See Also: