how to plot ROC curve ,given False positive rate and true positive rate

1 回表示 (過去 30 日間)
Nithya SIvasamy
Nithya SIvasamy 2016 年 10 月 1 日
編集済み: Walter Roberson 2016 年 10 月 5 日
TPR=[0.245 0.355 0.678 0.99 1]
FPR=[0.444 0.678 0.789 0.88 1]
plotroc(TPR,FPR)
when i use use plotroc,the graph displayed is in straight line manner. How to get a graph in a curved manner

回答 (1 件)

Steven Van Vaerenbergh
Steven Van Vaerenbergh 2016 年 10 月 5 日
The first and second argument for plotroc are the targets and outputs which you used to calculate FPR and TPR.
You can plot the ROC by using plot:
plot(TPR,FPR);
or by using plotroc on the original targets and outputs:
plotroc(targets,outputs);

カテゴリ

Help Center および File ExchangeROC - AUC についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by