Assuming the log loss equation to be:
logLoss=−(1/N)*∑_{i=1}^N (yi(log(pi))+(1−yi)log(1−pi))
where N
is number of samples, yi...yiN
is the actual value of the dependent variable, and pi...piN
is the predicted likelihood from logistic regression
How I am looking at it:
if yi = 0
then the first part yi(logpi) = 0
Alternatively, if yi = 1
then the second part (1−yi)log(1−pi) = 0
So now, depending on the value of y
one part of the equation is excluded. Am I understanding this correctly?
My ultimate goal is to understand how to interpret the results of log loss.