socketConnection出错(master,port = port,blocking = TRUE,open =“a + b”,:无法打开Stan中的连接(来自R)

时间:2016-03-10 04:59:07

标签: r parallel-processing rstan

根据parallel::detectCores(),我使用2012年的Macbook Pro Retina显示器运行El Capitan,其中包含8个内核。我的防火墙已关闭。我正在从stan_lmer包中加载的rstanarm执行以下调用。

hierarchical.model.1 <- stan_lmer(y ~ x1 + (1 | x2) + (1 | x3) +
                            x4 + x5 + x6 + x7 + x8,
                            data = df,
                            cores = NCORES, # NCORES = parallel::detectCores()
                            seed = SEED)

确切的错误是:

starting worker pid=12968 on localhost:11058 at 23:51:49.107
Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b",  : 
  cannot open the connection
Calls: <Anonymous> ... doTryCatch -> recvData -> makeSOCKmaster -> socketConnection
In addition: Warning message:
In socketConnection(master, port = port, blocking = TRUE, open = "a+b",  :
  localhost:11058 cannot be opened
Execution halted
  C-c C-c

0 个答案:

没有答案