Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2015 Aug 1;31(15):2595-7.
doi: 10.1093/bioinformatics/btv153. Epub 2015 Mar 24.

PRROC: computing and visualizing precision-recall and receiver operating characteristic curves in R

Affiliations

PRROC: computing and visualizing precision-recall and receiver operating characteristic curves in R

Jan Grau et al. Bioinformatics. .

Abstract

Precision-recall (PR) and receiver operating characteristic (ROC) curves are valuable measures of classifier performance. Here, we present the R-package PRROC, which allows for computing and visualizing both PR and ROC curves. In contrast to available R-packages, PRROC allows for computing PR and ROC curves and areas under these curves for soft-labeled data using a continuous interpolation between the points of PR curves. In addition, PRROC provides a generic plot function for generating publication-quality graphics of PR and ROC curves.

PubMed Disclaimer

Figures

Fig. 1.
Fig. 1.
Plots of ROC (left) and PR (right) curves generated by PRROC. For the ROC curve, we consider hard-labeled data and show the plotting variant with a color scale that indicates classification thresholds yielding the points on the curve. For the PR curve, we consider soft-labeled data and show a comparative plot for two classifiers as solid and dashed lines. We also include the maximal and minimal possible curves and the curve of a random classifier for the given soft-labels

Similar articles

Cited by

References

    1. Boyd K., et al. . (2013) Area under the precision-recall curve: point estimates and confidence intervals. In: Blockeel H., Kersting K., Nijssen S., Železný F. (ed.) Machine Learning and Knowledge Discovery in Databases. Vol. 8190 of LNCS. Springer, Berlin, pp. 451–466.
    1. Davis J., Goadrich M. (2006) The relationship between precision-recall and ROC curves. In: Proceedings of the 23rd International Conference on Machine Learning. ACM, New York, pp. 233–240.
    1. Davis J., et al. . (2005) View learning for statistical relational learning: with an application to mammography. In: Proceeding of the 19th International Joint Conference on Artificial Intelligence, pp. 677–683.
    1. Grau J., et al. . (2013) A general approach for discriminative de novo motif discovery from high-throughput data. Nucleic Acids Res.,41,e197. - PMC - PubMed
    1. Keilwagen J., et al. . (2014) Area under precision-recall curves for weighted and unweighted data. PLoS One, 9, e92209. - PMC - PubMed