Precision-Recall and ROC Curves
by Stefan Schroedl
23 Sep 2008
(Updated 17 Mar 2010)
Calculate and plot P/R and ROC curves for binary classification tasks.
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 17 Mar 2010 |
Update for better user interface, added options |
| 17 Mar 2010 |
Updated function arguments, added options |
|
Contact us at files@mathworks.com