View source: R/MultiLambdaCVfun.R
setupParallel | R Documentation |
This function sets up parallel computing by the package snowfall
.
setupParallel(ncpus = 2, sourcefile = NULL, sourcelibraries = c("multiridge","survival","pROC","risksetROC"))
ncpus |
Integer. Number of cpus to use. Should be >= 2. |
sourcefile |
Character. Additional source files to be loaded in parallel. Only required when parallel computing is also desired for functions
not available in |
sourcelibraries |
Character vector. Libraries to be loaded in parallel. Defaults to the libraries multiridge depends on. |
Parallel computing is available for several functions that rely on cross-validation. If double CV is used, parallel computing is applied to the outer loop, to optimize efficiency.
No return value, called for side effects
Snowfall package for further documentation on parallel computing. A full demo and data are available from:
https://drive.google.com/open?id=1NUfeOtN8-KZ8A2HZzveG506nBwgW64e4
## Not run: setupParallel(ncpus=4) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.