setupParallel: Setting up parallel computing

Description Usage Arguments Details Value See Also Examples

View source: R/MultiLambdaCVfun.R

Description

This function sets up parallel computing by the package snowfall.

Usage

1
2
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 multiridge.

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

1
2
3
4
## Not run: 
setupParallel(ncpus=4)

## End(Not run)

multiridge documentation built on June 15, 2021, 9:08 a.m.