I am new to R and RStudio and have experimented with smart modeling. The following train function works without parallel processing, but when I implement doSNOW makeCluster, I get the error below related to a variable named "optimismBoot". I searched in vain for permission, tried to install and uninstall packages, but nothing works. Any insight was appreciated.
cl <- makeCluster(2, type = "SOCK") registerDoSNOW(cl) caret.cv <- train(ReturnedToMF ~ ., data = trees.cetstrain, method = "xgbTree", tuneGrid = tune.grid, trControl = cetstrain.control) Error in e$fun(obj, substitute(ex), parent.frame(), e$data) : unable to find variable "optimismBoot"
I found the following link on this site, but it actually does not provide a solution for parallel processing: Affect R-straits and "cannot find the variable" optimismBoot "" error message
parallel-processing r caret
cag
source share