posterior icon indicating copy to clipboard operation
posterior copied to clipboard

Explicit trainControl blocking parallel rstar

Open mike-lawrence opened this issue 4 years ago • 1 comments
trafficstars

I was looking at what would be necessary to add parallelism to the computation of rstar, and thought this would work:

library(doMC)
registerDoMC(4)
rstar(x,uncertainty=T,trControl=caret::trainControl(allowParallel=T))

But I see that the call to caret::train inside rstar defines trControl explicitly itself, blocking the user from toggling parallelism. Was this intentional and is there another way to achieve parallelism?

mike-lawrence avatar Jul 08 '21 19:07 mike-lawrence

Tagging @ben18785 as he is the main author of the rstar function.

paul-buerkner avatar Jul 09 '21 20:07 paul-buerkner