classifierplots icon indicating copy to clipboard operation
classifierplots copied to clipboard

Missing curve in roc_plot

Open humburg opened this issue 4 years ago • 5 comments

I've encountered an issue (using version 1.4.0) where the ROC curve is missing from the plot produced by roc_plot(). See the image below for an example. As far as I can tell no errors or warnings are produced in the process. roc_plot

humburg avatar Nov 25 '20 22:11 humburg

Same issue here R 4.1.1 classifierplots 1.4.0

Juke34 avatar Mar 07 '22 12:03 Juke34

Hi, does the small test example work for you? roc_plot(example_predictions$test.y, example_predictions$pred.prob) I just did a fresh install of R and ran this example, it works for me.

If it is also working for you, I will need more information to debug the problem.

adefazio avatar Mar 11 '22 15:03 adefazio

Yes, that does work. What sort of additional information would you like?

humburg avatar Mar 15 '22 06:03 humburg

If your data is sharable that it easiest. If not, can you check for nan, inf etc. in your data. If there are a lot of duplicate values in the pred.prob values could cause issues. Do you have any issues running other ROC curve plotting libraries? A percentile plot of test.y and pred.prob could help diagnose things. Is pred.prob in the range [0,1]?

adefazio avatar Mar 15 '22 16:03 adefazio

This isn't my data but I see what I can do to get you more details.

humburg avatar Mar 17 '22 06:03 humburg