Example MATLAB script to plot ROC curve for different classification algorithms

version 1.0.0.0 (5.92 KB) by Dr. Soumya Banerjee
Example MATLAB script to plot ROC curve and compute AUC for 4 different classification algorithms

992 Downloads

Updated8 Jan 2018

View License

Example MATLAB script to load data
and plot ROC curve and compute
AUC for 4 different classification
algorithms:
GLM with logistic regression
SVM
Naive Bayes
Classification trees
Usage:
matlab < plot_roc_curve_example_comparealgos.m

Adapted from
https://uk.mathworks.com/help/stats/perfcurve.html

Cite As

Dr. Soumya Banerjee (2022).Example MATLAB script to plot ROC curve for different classification algorithms(//www.tianjin-qmedu.com/matlabcentral/fileexchange/65629-example-matlab-script-to-plot-roc-curve-for-different-classification-algorithms), MATLAB Central File Exchange. Retrieved.

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

Community Treasure Hunt

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

Start Hunting!