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.
我们使用 R 中的 AUC 包来评估模型预测。
有时,我们会遇到如下错误:
> plot(roc(pred, yTEST)) > auc(roc(pred, yTEST)) Error in rank(prob) : argument "prob" is missing, with no default
谁能告诉我们错误来自哪里?请注意:该问题并不经常发生。例如:我们运行了 10 个模型,结果发生在 3-4 个模型上。
听起来您可能在 AUC 之后加载了 glmnet(glmnet 也具有 auc 功能)。刚刚在函数之前使用了 AUC::。