R 多核选择?
我正在使用“R”库“glmulti”,并执行详尽的搜索 相关代码:R 多核选择?,r,glm,rjava,R,Glm,Rjava,我正在使用“R”库“glmulti”,并执行详尽的搜索 相关代码: local1.model <- glmulti(est, # use the model with built as a starting point level = 1, # just look at main effects method = "h", crit="aicc
local1.model <- glmulti(est, # use the model with built as a starting point
level = 1, # just look at main effects
method = "h",
crit="aicc") # use AICc because it works better than AIC for small sample sizes
local1.modelR是单线程的(除非函数构建在具有自己线程的库上)。您可以使用rparallel库(它是core R的一部分)手动将并行化添加到代码中:
我会将它归类为非平凡的使用。这是在R之上的一个小技巧,所以它做了大量的内存复制,如果你关心效率的话,你需要考虑正在发生什么
看起来它应该是并行的(即每个参数的组合可以并行进行,即使使用遗传算法)。我猜他们打算添加它,但开发停止了(自2009年9月以来没有更新)