I want to plot the Roc curve using perfcurve function i have 2 plot which code is right
显示 更早的评论
the code is [Xpr,Ypr,Tpr,AUCpr] = perfcurve(targets,abs(scores(:,1)), 1, 'xCrit', 'reca', 'yCrit', 'fpr');
plot(Xpr,Ypr)
xlabel('specificity'); ylabel('sensitivity') title(['ROC curve (AUC: ' num2str(AUCpr) ')'])
where scores(2 columns ) the first for predict abnormal image and the second for normal the problem is i got this graph

and if i change the score into abs(scores(:,2)), 1,i get an extremely different graph

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 ROC - AUC 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
