Relative Content

Tag Archive for rrocauc

PRROC package – foreground background data – R

I’m currently trying to draw ROC and precision-recall curves for my model and struggling a bit to understand how to use my data for the PRROC package of R.
I have a data frame containing different confidence thresholds in [0.1, 1] and for each of these confidence thresholds I know the amount of true positives, false positives, false negatives and true negatives (conf, TP, FP, TN, FN). The PRROC package requires to use foreground (fg) and background (bg) data i.e. positive and negative. But I’m actually confused about what it means regarding my data.