Precision-Recall and ROC Curves

版本 1.2.0.0 (4.1 KB) 作者: Stefan Schroedl
Calculate and plot P/R and ROC curves for binary classification tasks.
16.8K 次下载
更新时间 2010/3/17

查看许可证

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.

引用格式

Stefan Schroedl (2024). Precision-Recall and ROC Curves (https://www.mathworks.com/matlabcentral/fileexchange/21528-precision-recall-and-roc-curves), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
致谢

启发作品: Lynx MATLAB Toolbox

Community Treasure Hunt

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

Start Hunting!

prec_rec/

版本 已发布 发行说明
1.2.0.0

Updated function arguments, added options

1.1.0.0

Update for better user interface, added options

1.0.0.0