使用插入符号+ doParallel时,MRO 3.5.1失败 [英] MRO 3.5.1 fails when using caret + doParallel

查看:87
本文介绍了使用插入符号+ doParallel时,MRO 3.5.1失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现当我尝试使用带有doParallel包的插入符时,Microsoft R Open 3.5.1失败了(参见下面的代码)。但是,相同的代码在没有并行化的情况下工作得很好,更有趣的是,使用doParallel但是在MRO
3.4.3上。我正在使用Windows 10.任何想法? :)

I've recently found that Microsoft R Open 3.5.1 fails when I'm trying to use caret with doParallel package (see the code below). However, the same code works perfectly without parallelization and, what's more interesting, works with doParallel but on MRO 3.4.3. I'm using Windows 10. Any ideas? :)

这是我的代码:




推荐答案

此代码应该运行正常 - 在我的系统上运行正常。

This code should run fine - works for me just fine on my system.

您收到的错误消息是什么? 这里可能存在的一个问题是,为了并行运行R代码,需要在系统上打开一个端口。如果它无法打开端口,代码将失败,但我不记得
在这种情况下将显示的确切错误。

What is the error message you are getting?  One thing that could be the problem here, is that in order to run R code in parallel it will need to open a port on your system. If it is unable to open a port, the code will fail, though I don't remember the exact error that will be displayed in that case.

我的建议是您尝试显式设置'端口'R将尝试在makeCluster()函数中使用,然后确保您的防病毒软件允许通过您在makeCluster()调用中指定的端口进行连接。

My suggestion would be that you try to explicitly set the 'port' R will try to use in the makeCluster() function and then make sure that your antivirus software allows connections via the port you have specified in the makeCluster() call.

希望这会有所帮助。


这篇关于使用插入符号+ doParallel时,MRO 3.5.1失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆