Skip to contents

Runs one candidate graph per process, with dynamically scheduled jobs and no nested fold parallelism. On Unix, forked workers inherit the loaded package sources. Run from Rscript, not a GUI or multithreaded parent process.

Usage

compare.masked.graph.fields(operators, studies, workers = 1L, ...)

Arguments

operators

Named list of metric graph low-pass operators.

studies

Named list of argument lists containing vertex, y and group.

workers

Number of graph workers; choose using available memory and CPU. Defaults to serial execution. Windows currently requires one worker.

...

Additional arguments passed to cv.masked.graph.field.

Value

Named graph results, each containing named study results or an explicit error record. Retains per-observation predictions for common-support scoring.

Examples

op <- metric.graph.lowpass.operator(list(2L, c(1L, 3L), 2L),
                                   list(1, c(1, 1), 1))
studies <- list(example = list(vertex = rep(c(1, 3), 6), y = 1:12,
                               group = letters[1:12]))
comparison <- compare.masked.graph.fields(list(path = op), studies,
    workers = 1, lambdas = c(0.01, 1), outer.folds = 3, inner.folds = 2)
comparison$path$example$coverage
#> [1] 1