loss.gr.cross.entropy: Cross Entropy Loss Function Gradient
Description
This function implements cross entropy loss gradient with respect to y.hat
used for logistic regression in the form required by
EmpiricalRiskMinimizationDP.CMS.
Usage
loss.gr.cross.entropy(y.hat, y)
Value
Vector or matrix of the cross entropy loss gradient for each element
of y.hat and y.