Warning while passing the arguments in trainControl

myControl = trainControl(method=‘cv’,number=5,repeats=2,search = “random”,returnResamp=‘none’)
Warning message:
repeats has no meaning for this resampling method.

While preparing the trControl for for my model i am facing this error.
does anyone else came across similar thing ?

instead of




1 Like

Thank you so much for the prompt reply, yes it working now

is it because cv is been replaced by repeatedcv now ?

If you are using repeats, the method becomes repeatedcv. Else (when you are not using repeats), you can keep the method = cv.

Thank you Apan,this makes sense.

Also, I know this is outside this question what are your opinion on the below discussion

© Copyright 2013-2019 Analytics Vidhya