Example MATLAB script to plot ROC curve for different classification algorithms
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 (2023). Example MATLAB script to plot ROC curve for different classification algorithms (https://www.mathworks.com/matlabcentral/fileexchange/65629-example-matlab-script-to-plot-roc-curve-for-different-classification-algorithms), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |