I need to determine the seed setting for repeatedCV for KNN model using caret package in R.
My train dataset has 12 columns and 1000 rows (column 1 in the binary response and other 11 columns are standardized predictor variables)
How can I correctly determine the seed setting for "repeatedCV" 50-fold and 5- repeats.?
Is the below seed-setting correct?
Can somebody help to understand the correct seed-setting for repeatedCV and LOOCV?
Please see my code below.
set.seed(123)
seeds <- vector(mode = "list", length = 251)
for(i in 1:250) seeds[[i]] <- sample.int(1000, 11)
## For the last model:
seeds[[251]] <- sample.int(1000, 1)