We can calculate the log loss for a classification problem with two classes as follows:
where y is the label of the actual class and p the probability of the class being positive (e.g. P(y=1)).
However, this assumes that y has the classes 0 and 1. What can I do when my class labels are actually -1 and +1? How do you calculate the log loss in that case?
