You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@idroz I added openmp support and verified that it works on mac. Here are the new timings on a dataset of 7,000 obs and 11 columns and 100 trees of depth 32. Roughly 4x speedup.
Unit: milliseconds
expr min lq mean median uq max neval
new 229.6577 244.6078 269.6257 253.532 269.4523 471.8144 100
old 981.9939 1013.5965 1067.6469 1031.105 1099.3970 1640.0559 100
To get it to work on mac you have to first:
brew install llvm
And then edit your ~/.R/Makevars file to look like so:
That last bit with -fopenmp=libiomp5 was a real pain to figure out. I have to add some safety checks. The code will crash if your data.frame has types other than numeric, integer, or factor.
To call the omp parallel predict function do the following:
No description provided.
The text was updated successfully, but these errors were encountered: