I am trying to compare several binary classifiers. These classifiers (Gaussian Processes in my case, but it shouldn't matter) give me probabilistic predictions. Let's introduce some notations:
$$y_i \in \{0,1\} = \text{true class of sample $i$}$$ $$p_i \in [0,1] = \text{Pr}(y_i = 1 \mid x_i), \text{probability that sample $i$ is positive}$$ I know two "classical" ways to measure the accuracy of the probabilistic classifiers:
- 0-1 loss: just predict the class that has highest probability, and compare against the true class: $$L_i = y_i\mathbf{1}_{\{p_i \le 0.5\}} + (1 - y_i)\mathbf{1}_{\{p_i > 0.5\}}$$
- logarithmic loss: takes into account the predictive probability of the class. $$L_i = -y_i\log(p_i) - (1 -y_i) \log(1 -p_i)$$ This makes sense to me in that it is the log-likelihood of the sample, under the distribution induced by the classifier.
Now I am suggesting a third loss function, let's call it the "probability loss": $$L_i = y_i(1 - p_i) + (1 - y_i) p_i$$
I have a bunch of questions related to this last loss function:
- Did I just make it up, or is it a well-known loss function?
- Intuitively, i would interpret it as the "expected" 0-1 loss. Does this make sense?
And most importantly: where's the catch? I'm quite confident that this loss function is flawed, but I can't see where & how.
Note: this question seems related, in particular the comment to the first answer.