zeitzeigerSpcCv: Calculate sparse principal components of time-dependent...

Description Usage Arguments Value See Also

View source: R/zeitzeiger_cv.R

Description

zeitzeigerSpcCv calls zeitzeigerSpc for each fold of cross-validation. By default, if a parallel backend is registered, this function processes the folds in parallel.

Usage

1
2
zeitzeigerSpcCv(fitResultList, nTime = 10, useSpc = TRUE,
  sumabsv = 1, orth = TRUE, dopar = TRUE)

Arguments

fitResultList

Result from zeitzeigerFitCv.

nTime

Number of time-points by which to discretize the time-dependent behavior of each feature. Corresponds to the number of rows in the matrix for which the SPCs will be calculated.

useSpc

Logical indicating whether to use SPC (default) or svd.

sumabsv

L1-constraint on the SPCs, passed to SPC.

orth

Logical indicating whether to require left singular vectors be orthogonal to each other, passed to SPC.

dopar

Logical indicating whether to process the folds in parallel. Use registerDoParallel to register the parallel backend.

Value

A list consisting of the result from zeitzeigerSpc for each fold.

See Also

zeitzeigerSpc, zeitzeigerFitCv, zeitzeigerPredictCv


jakejh/zeitzeiger documentation built on Nov. 22, 2018, 6:53 a.m.