Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 ROC 曲线的所有坐标保存到一个列表中,以便以后可以绘制多条 ROC 曲线。
如何指定我的 x 值以返回所有坐标?
roc_train <- roc(target~prob, data=ordered_test, col="#1c61b6") coord_list <- list() coord_list[1] <- coords(roc_train)
我假设您正在使用该pROC软件包。x参数可以"all"设置为
pROC
x
"all"
coord_list[[1]] <- coords(roc_train, x = "all")
这将返回 ROC 曲线的所有坐标。