classifierplots
classifierplots copied to clipboard
Missing curve in roc_plot
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.
Same issue here R 4.1.1 classifierplots 1.4.0
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.
Yes, that does work. What sort of additional information would you like?
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]?
This isn't my data but I see what I can do to get you more details.