I used sam (spectral angle mapper) to change detection in hyperspektral image after that want to plot roc(Receiver operating characteristic) using perfcurve function but function return one value. why ? could you help me?
[Xpr,Ypr,Tpr,AUCpr] = perfcurve(hyperdata_gt,abs(result),'1'); plot(Xpr,Ypr);

댓글 수: 1

Ezgi Aslan
Ezgi Aslan 2020년 8월 24일
[X,Y] = perfcurve(labels,scores,posclass); plot(X,Y);
labels are the true labels of the data, scores are the output scores from your classifier (before the threshold) and posclass is the positive class in your labels.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 AI for Signals에 대해 자세히 알아보기

질문:

2020년 8월 24일

댓글:

2020년 8월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by