View source: R/mc.cores.openmp.R
mc.cores.openmp | R Documentation |
This function is inherited from the CRAN R package 'BART' and was designed for OpenMP. For example, the
pwbart
function can use OpenMP or the 'parallel' R package for multi-threading. On UNIX/Unix-like systems,
OpenMP, if available, is discovered at install time. However, we know of no GPL licensed code available to detect
OpenMP on Windows (for Artistic licensed OpenMP detection code on Windows, see the Bioconductor R package 'rGADEM').
To determine whether OpenMP is available at run time, we provide the function documented here.
mc.cores.openmp()
This function returns 0 when OpenMP is not available; otherwise, an integer greater than 0 is returned when OpenMP is available (1 is returned unless you are running in a multi-threaded process)
Chuji Luo: cjluo@ufl.edu and Michael J. Daniels: daniels@ufl.edu.
Chipman, H. A., George, E. I. and McCulloch, R. E. (2010). "BART: Bayesian additive regression trees." Ann. Appl. Stat. 4 266–298.
Linero, A. R. (2018). "Bayesian regression trees for high-dimensional prediction and variable selection." J. Amer. Statist. Assoc. 113 626–636.
Luo, C. and Daniels, M. J. (2021) "Variable Selection Using Bayesian Additive Regression Trees." arXiv preprint arXiv:2112.13998.
Rockova V, Saha E (2019). “On theory for BART.” In The 22nd International Conference on Artificial Intelligence and Statistics (pp. 2839–2848). PMLR.
Sparapani, R., Spanbauer, C. and McCulloch, R. (2021). "Nonparametric machine learning and efficient computation with bayesian additive regression trees: the BART R package." J. Stat. Softw. 97 1–66.
pwbart
.
mc.cores.openmp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.