Class CrossEntropyLoss

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

public class CrossEntropyLoss extends Object implements LossFunction, Serializable
Average Cross Entropy Loss function commonly used for multi class classification problems. E = -1/n * SUM(SUM(t*ln(y))) Since its 1-of-n classification scheme, all outputs but target are zeros so it comes down to E = -1/n * SUM(ln(y_targetIdx))
See Also: