Participant-Grouped Nested Cross-Validation for a Masked Graph Field
Source:R/masked_graph_fields.R
cv.masked.graph.field.RdSelect smoothing within outer training folds, predict held-out groups, and finally tune and refit on all observations. Graph construction is label-free and fixed (transductive prediction). Unsupported predictions remain NA.
Usage
cv.masked.graph.field(
operator,
vertex,
y,
group,
lambdas = 10^seq(-6, 2, length.out = 17),
outer.folds = 5L,
inner.folds = 4L,
seed = 1L,
fold.id = NULL,
progress = NULL
)Arguments
- operator
An unnormalized
metric.graph.lowpass.operator.- vertex
Integer vertex index for each observed response.
- y
Finite numeric observed responses (no missing-value placeholders).
- group
Participant or leakage-block identifier per observation.
- lambdas
Positive finite candidate penalties.
- outer.folds, inner.folds
Numbers of grouped folds.
- seed
Fold seed, independent of worker scheduling.
- fold.id
Optional preassigned outer fold per observation; a group must occupy exactly one fold.
- progress
Optional function called after each outer fold with fold and selected penalty; intended for experiment progress records.