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!
