main.m683 chars24 linesThis function takes in two input arguments: t_hat which represents the predicted binary targets and t which represents the true binary targets. It computes the detection error loss for each example using the following rules:
The function then computes the average detection-error loss over all the examples and returns it as the output variable loss.
gistlibby LogSnag