External Cross-Validation
external_crossval.Rd
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).