Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when using AUC package in R

Tags:

r

auc

We use the AUC package in R to evaluate the model prediction.

Sometimes, we faced the error like below:

    > plot(roc(pred, yTEST))
    > auc(roc(pred, yTEST)) 
    Error in rank(prob) : argument "prob" is missing, with no default

Could anyone let us know where the error comes from ? Note that: the problem did not occur frequently. For example: we ran 10 models and it happened to 3-4 models.

like image 789
Celine Avatar asked Apr 09 '26 03:04

Celine


1 Answers

It sounds like you might have loaded glmnet after AUC (glmnet also has a auc function). Just used AUC:: before the function.

like image 141
podTockom Avatar answered Apr 11 '26 19:04

podTockom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!