external_crossval: External Cross-Validation

View source: R/mvpa_iterate.R

external_crossvalR Documentation

External Cross-Validation

Description

This function performs external cross-validation on the provided ROI and model specification. It returns a tibble with performance metrics, fitted model (optional), and any warnings or errors.

Usage

external_crossval(
  roi,
  mspec,
  id,
  compute_performance = TRUE,
  return_fit = FALSE,
  permute = FALSE
)

Arguments

roi

A list containing train_roi and test_roi elements.

mspec

A model specification object.

id

A unique identifier for the model.

compute_performance

Logical, whether to compute performance metrics (default: TRUE).

return_fit

Logical, whether to return the fitted model (default: FALSE).

permute

Logical, whether to permute the training labels (default: FALSE).

Value

A tibble with performance metrics, fitted model (optional), and any warnings or errors.


bbuchsbaum/rMVPA documentation built on April 28, 2024, 6:30 a.m.