Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[MRG] Ensure that ROC curve starts at (0, 0) #10093
What does this implement/fix? Explain your changes.
Currently, when the first point of ROC curve is on y-axis, we don't add a point (0, 0), which is not consistent with doc & some papers & some R packages.
library(ROCR) pred <- prediction(c(0.1, 0.4, 0.35, 0.8), c(0, 0, 1, 1)) perf <- performance(pred,"tpr","fpr") plot(perf)
Any other comments?