Thursday, May 2, 2019

Parallel model training in R






library("foreach")
library("parallel")
library("doParallel")


cl <- makeCluster(5)
registerDoParallel(cl)

timestamp()

list.model <- foreach(jj=1:nrow(iter.Seq), .packages = c('hmeasure', 'mlr', 'ada', 'pROC', 'ggplot2', 'data.table', "plyr")) %dopar% {

#-- Do stuff here



  list(model.Final, train.set, test.set, train.decile, test.decile, HMeasure(pred.trn$truth, pred.trn$prob.1)$metrics, HMeasure(pred.tst$truth, pred.tst$prob.1)$metrics)
}
stopCluster(cl)

No comments:

Post a Comment

Loud fan of desktop

 Upon restart the fan of the desktop got loud again. I cleaned the desktop from the dust but it was still loud (Lower than the first sound) ...