I use ROCR package in R to calculate Precision-recall break-even point. But surprisingly, it gives negative results sometimes. As I know, it is impossible for prbe to be negative.
What can be the problem?
For example prbe is -6.938894e-17 while auc is 0.8171971
I calculate it as follows,
pr = prediction(preds, labs)
auc = performance(pr, 'auc')@y.values[[1]]
prbe = performance(pr, 'prbe')
prbe = [email protected][[1]][ length( [email protected][[1]] ) ]