image thumbnail

Precision-Recall and ROC Curves

version 1.2.0.0 (4.14 KB) by Stefan Schroedl
Calculate and plot P/R and ROC curves for binary classification tasks.

16.4K Downloads

Updated17 Mar 2010

View License

Consider a binary classification task, and a real-valued predictor, where higher values denote more confidence that an instance is positive. By setting a fixed threshold on the output, we can trade-off recall (=true positive rate) versus false positive rate (resp. precision).

Depending on the relative class frequencies, ROC and P/R curves can highlight different properties; for details, see e.g., Davis & Goadrich, 'The Relationship Between Precision-Recall and ROC Curves', ICML 2006.

Cite As

Stefan Schroedl (2022).Precision-Recall and ROC Curves(//www.tatmou.com/matlabcentral/fileexchange/21528-precision-recall-and-roc-curves), MATLAB Central File Exchange. Retrieved.

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired:Lynx MATLAB Toolbox

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

prec_rec/