Precision-Recall and ROC Curves

Calculate and plot P/R and ROC curves for binary classification tasks.
17K Downloads
Aktualisiert 17. Mär 2010

Lizenz anzeigen

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.

Zitieren als

Stefan Schroedl (2026). Precision-Recall and ROC Curves (https://de.mathworks.com/matlabcentral/fileexchange/21528-precision-recall-and-roc-curves), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2007a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert: Lynx MATLAB Toolbox

Version Veröffentlicht Versionshinweise
1.2.0.0

Updated function arguments, added options

1.1.0.0

Update for better user interface, added options

1.0.0.0