Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run randomForest in R on multiple cores in parallel? [duplicate]

I have a randomForest model that I want to calculate on multiple cores. How can I tell the model to run in parallel?

This is not a duplicate of parallel execution of random forest in R as I don't need to run multiple models in parallel, I want one model to run in parallel.

like image 556
steves Avatar asked Nov 29 '25 14:11

steves


1 Answers

I use the doMC package and its registerDoMC function. Works really well.

like image 96
nycrefugee Avatar answered Dec 02 '25 03:12

nycrefugee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!