使用boostmtree包的mclapply错误

时间:2019-02-21 10:56:43

标签: r mclapply

我正在尝试使用boostmtree包来预测值;然而       看起来包使用了mclapply,我得到了这个错误(代码和错误       下面):       install.packages(“ boostmtree”)       图书馆(boostmtree)       M <-500

  ## simulation 0: only main effects (x1, x3, x4)
  dtaO <- simLong(n = 100, ntest = 100, model = 2, q = 25)

  ## save the data as both a list and data frame
  dtaL <- dtaO$dtaL
  dta <- dtaO$dta

  ## get the training data
  trn <- dtaO$trn

  o.1 <- boostmtree(dtaL$features[trn, ], dtaL$time[trn], 
  dtaL$id[trn],dtaL$y[trn],
              M = 350)
  p.1 <- predict(o.1, dtaL$features[-trn, ], dtaL$time[-trn], dtaL$id[-trn], 
  dtaL$y[-trn])


  Error in mclapply(X, FUN, ..., mc.preschedule = mc.preschedule, 
  mc.set.seed 
   = mc.set.seed,  : 
  'mc.cores' > 1 is not supported on Windows

0 个答案:

没有答案