This function implements the generic logic for running a searchlight:
Checks
radiusandmethod.For "standard" searchlight, calls
do_standard(...).For "randomized", calls
do_randomized(...)withnitertimes.Handles the
combinerfunction or string ("pool", "average").
Arguments
- model_spec
A model specification object (e.g.,
mvpa_model,vector_rsa_model, etc.).- radius
Numeric searchlight radius (1 to 100).
- method
Character: "standard" or "randomized".
- niter
Number of iterations if
method="randomized".- combiner
Either a function that combines partial results or a string ("pool", "average") that selects a built-in combiner.
- drop_probs
Logical; if TRUE, drop per-ROI probability matrices after computing metrics to save memory. Default FALSE.
- fail_fast
Logical; if TRUE, stop immediately on first ROI error instead of continuing. Default FALSE.
- k
Optional integer; number of cross-validation folds. Default NULL (use model default).
- ...
Additional arguments passed on to
do_standardordo_randomized.