Skip to contents

Public wrapper around rMVPA's internal ROI cross-validation helpers. This allows plugin authors to reuse standard fold execution without calling non-exported functions.

Usage

cv_evaluate_roi(
  model_spec,
  roi_data,
  context = NULL,
  mode = c("auto", "internal", "external"),
  return = c("roi_result", "row"),
  ...
)

Arguments

model_spec

A model specification object.

roi_data

ROI payload as used by fit_roi.

context

Context list (defaults to mock_context() based on model_spec).

mode

One of "auto", "internal", or "external". "auto" chooses "external" when has_test_set(model_spec) is true, otherwise "internal".

return

One of "roi_result" (default) or "row". "row" returns the raw tibble row produced by the CV helper.

...

Additional arguments passed to the underlying CV helper.

Value

A roi_result by default, or a tibble row when return = "row".