You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
method<- c( "bag")
# -------------------------------------------------------------------------# FIRST sequential code (not parallel one CPU core):# -------------------------------------------------------------------------
require(caret); data(BloodBrain); set.seed(123)
fit1<- train(bbbDescr, logBBB, method); fit1# ------------------------------------------------------------------------- # SECOND parallel register 4 cores (no worries if you only have 2)# train the caret model in parallel # -------------------------------------------------------------------------
library(doParallel); cl<- makeCluster(4); registerDoParallel(cl)
require(caret); data(BloodBrain); set.seed(123)
fit1<- train(bbbDescr, logBBB, method); fit1
stopCluster(cl); registerDoSEQ();
### END
The text was updated successfully, but these errors were encountered:
caret_6.0-70 and R version 3.3.1
The text was updated successfully, but these errors were encountered: