# “prediction” function in R – Number of cross-validation runs must be equal for predictions and labels

A blog reader reached out to me with an error he faced with prediction function while trying to plot an ROC curve. This post captures the error and the fix. Error message: Error in prediction(Traindata$predict.score, Traindata$Subscribe) : Number of cross-validation runs must be equal for predictions and labels. Reason: R code segment that gives error […]