问题描述
我对 ROC曲线的概念并不陌生.我试图通过阅读网络上的一些教程来理解它.我在python中此处找到了一个很好的例子.
I'm new to the concept of ROC curves. I've tried to understand it by reading a few tutorials on the web. I found a really good example here in python which was helpful.
我想为我构建的 multiclass 分类器绘制 ROC曲线.但是,网络上的大多数解决方案都是针对 2类问题和非多类的.
I want to plot a ROC curve for multiclass classifier that I built(in Python). However, Most of the solutions on the web are for 2 class problems and not multiclass.
但是,我终于找到了" multiclass.roc R 中的 pROC 软件包中的>"功能,可进行多类ROC曲线绘制.
However, I finally found "multiclass.roc" function in pROC package in R which does multiclass ROC curve plotting.
以下是一个简单的示例:
The following is a simple example:
library(pROC)
data(aSAH)
multiclass.roc(aSAH$gos6, aSAH$s100b)
但是,我不知道如何解释(因为我不知道R).
However, I don't understand how to interpret it (as I don't know R).
谁能指出 aSAH $ s100b 变量是什么?我可以说 aSAH $ gos6 指向 aSAH 数据集中的不同类别的数据.
Can anyone please point out what aSAH$s100b variable refers to? I can say aSAH$gos6 points to different classes of data in aSAH dataset.
推荐答案
此外,您可能希望查看 Fawcett,2006 ,该书为理解和实现ROC图提供了很好的指南.他还介绍了多类ROC和AUC,并指出了更多资源.
Additionally, you might want to look at Fawcett, 2006 for a very nice guide to understanding and implementing ROC plots. He also addresses multi-class ROC and AUC, as well as points to additional resources.
这篇关于R中的多类ROC曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!