How to plot roc curve for multi class?

I have 3 classes and i want to plot roc curve for my classifier. But by using plotroc it is plotting only for binary class. I can't understand how to plot for multi class.

回答 (1 件)

Jagadeeswararao Annam
Jagadeeswararao Annam 2017 年 12 月 2 日

0 投票

ROC curve is done for binary classification. For Multi-class you have to create 3 one-vs-rest binary classifications on data taking positive samples as 1 and negative samples as -1.

カテゴリ

ヘルプ センター および File ExchangeROC - AUC についてさらに検索

質問済み:

2017 年 6 月 30 日

回答済み:

2017 年 12 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by