Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 多核选择?_R_Glm_Rjava - Fatal编程技术网

R 多核选择?

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

我正在使用“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") # use AICc because it works better than AIC for small sample sizes
local1.modelR是单线程的(除非函数构建在具有自己线程的库上)。您可以使用rparallel库(它是core R的一部分)手动将并行化添加到代码中:

我会将它归类为非平凡的使用。这是在R之上的一个小技巧,所以它做了大量的内存复制,如果你关心效率的话,你需要考虑正在发生什么

看起来它应该是并行的(即每个参数的组合可以并行进行,即使使用遗传算法)。我猜他们打算添加它,但开发停止了(自2009年9月以来没有更新)