Faster ROC-AUC
AUC = fastAUC(labels,scores,posclass)
Calculates the Area under the ROC curve (AUC) for problems involving two distinct targets (i.e. binary classification problems). Main advantages of using this function are:
*speed
Written in C++, it performs much faster than perfcurve (Matlab statistics toolbox). On a benchmark of 20 million instances this function achieves a speed up factor of more than 100 with respect to perfcurve.
*independence
Works without needing to install the statistics toolbox.
Please send any questions, comments and/or suggestions by mail.
Cite As
Enric Junque de Fortuny (2026). Faster ROC-AUC (https://www.mathworks.com/matlabcentral/fileexchange/41258-faster-roc-auc), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: RADIOMICS
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
