[Compute AUC of a ROC Function]

5 ビュー (過去 30 日間)
Enrico
Enrico 2012 年 12 月 21 日
回答済み: Misha 2014 年 4 月 16 日
Hi all,
I'm working to a classifier in which are presente 3 classes.
Now, I can plot ROC function through this:
figure, plotroc(targets,outputs)
h=gcf;
set(h, prop, valori);
print(h, '-dpdf', '-r300', strcat(folder_name,'\Roc.pdf'));
close all;
I would like to compute the AUC of this picture, Can you help me?
Thanks
Enrico

回答 (2 件)

Ilya
Ilya 2012 年 12 月 21 日
If you have Statistics Toolbox, the perfcurve function can compute AUC.
You mention that you have 3 classes. I am guessing this means you get 3 ROC curves. You can then compute 3 AUC values, one per curve.
  2 件のコメント
Enrico
Enrico 2012 年 12 月 22 日
Thanks for your answer. Can you explain why matlab plots an only one ROC curve, with: plotroc(..) ?
Thanks
Ilya
Ilya 2012 年 12 月 22 日
No, I cannot. I have no idea what your data looks like, and I do not really know what plotroc function you are using.

サインインしてコメントする。


Misha
Misha 2014 年 4 月 16 日
I am having the same query of how to compute AUC of ROC curve plotted with plotROC function. If u got the answer can u please help me with the same.

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by