adefazio / classifierplots

Generates a visualization of binary classifier performance as a grid of diagonstic plots with just one function call
Other
48 stars 7 forks source link

Missing curve in roc_plot #19

Open humburg opened 3 years ago

humburg commented 3 years ago

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

Juke34 commented 2 years ago

Same issue here R 4.1.1 classifierplots 1.4.0

adefazio commented 2 years ago

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.

humburg commented 2 years ago

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

adefazio commented 2 years ago

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]?

humburg commented 2 years ago

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