【问题标题】:Unable to produce ROC curve in RCommander无法在 RCommander 中生成 ROC 曲线
【发布时间】:2018-01-04 19:02:04
【问题描述】:

我编写了以下代码来绘制 ROC 曲线:

pred1 <- prediction(predict(modelID), LS_01RR$Payment_Ind)
perf1 <- performance(pred1,"tpr","fpr")
plot(perf1) 
plot(perf1,main="hivpr - ROC Curves",col="blue")
abline(0,1,col="grey")

但它没有情节。这里有什么问题?

【问题讨论】:

    标签: r roc


    【解决方案1】:

    检查名为 ('perf1') 的 ROC 对象。您可能没有正确创建对象。

    【讨论】:

    • 您好,之前的代码工作正常,它的情节不是在我的 RCommander 会话中生成的
    猜你喜欢
    • 2017-08-10
    • 2012-04-14
    • 2016-01-18
    • 2019-09-09
    • 2018-01-03
    • 2019-12-26
    • 2019-02-27
    • 1970-01-01
    • 2013-08-10
    相关资源
    最近更新 更多