Невозможно построить кривые ROC - PullRequest
0 голосов
/ 24 июня 2019

Я работаю над анализом glm и пытаюсь построить кривые ROC из модели Logit.

Прогноз:

predicted_logit=predict(model_logit, type="response") 

Затем я пытаюсь построить кривые ROC

preds_logit=performance(predicted_logit, measure="tpr", x.measure="fpr")
plot(preds_logit, main="ROC curve for the Logit model")

Возникающая ошибка:

Error in performance(predicted_logit, measure = "tpr", x.measure = "fpr") : 
  Wrong argument types: First argument must be of type 'prediction'; second and optional third argument must be available performance measures!

Не могли бы вы помочь мне исправить это?

Лучший

...