setupParallel {multiridge} | R Documentation |
Setting up parallel computing
Description
This function sets up parallel computing by the package snowfall
.
Usage
setupParallel(ncpus = 2, sourcefile = NULL, sourcelibraries =
c("multiridge","survival","pROC","risksetROC"))
Arguments
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. |
Details
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.
Value
No return value, called for side effects
See Also
Snowfall package for further documentation on parallel computing. A full demo and data are available from:
https://drive.google.com/open?id=1NUfeOtN8-KZ8A2HZzveG506nBwgW64e4
Examples
## Not run:
setupParallel(ncpus=4)
## End(Not run)