roc and auc plotting in cnn

3 次查看(过去 30 天)
Methil Muley
Methil Muley 2020-10-5
回答: Vidip 2024-4-8
How To Plot ROC and AUC while dealing with CNN ? please give me sample code

回答(1 个)

Vidip
Vidip 2024-4-8
To plot the Receiver Operating Characteristic (ROC) curve and compute the Area Under the Curve (AUC) for a Convolutional Neural Network (CNN) model in MATLAB, you typically need the predicted scores (probabilities) from your model and the true labels of your test data.
In MATLAB you can use ‘plotroc’ function to plot the receiver operating characteristic for each output class and to get the area under the ROC curve while you train a deep neural network, you can use ‘aucMetric’ function. For more information regarding these functions, you can refer to the below documentation links-

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by