Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

numCoresToUse (和 rxOptions,一般而言) 被關聯設定 RevoScaleR 函式的分散式運算環境。foreach 和 doParallel 不使用它。若要在平行模式中執行指令碼,您必須先註冊平行的後端 foreach 命令。 使用而不是設定 numCoresToUse

library(doParallel} registerDoParallel(cores=6)

getDoParWorkers() 應該在這個時候會傳回 6。這會設定 「 運算叢集 」 跨越每個核心,每一個都可以執行 R 程序,並透過與其他的通訊端進行通訊。

使用 foreach 和 doParallel,將會說明更多的選項,以平行方式執行一些額外的資源︰

http://cran.r-project.org/web/packages/foreach/vignettes/foreach.pdf 
http://cran.r-project.org/web/packages/doParallel/vignettes/gettingstartedParallel.pdf

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×