Train an MVPA Model
train_model.mvpa_model.Rd
This function trains a Multi-Variate Pattern Analysis (MVPA) model on the provided data, taking care of feature selection, parameter tuning, and model fitting.
Usage
# S3 method for class 'mvpa_model'
train_model(obj, train_dat, y, indices, wts = NULL, ...)
Arguments
- obj
An object of class
mvpa_model
, specifying the MVPA problem.- train_dat
Training data, an instance of class
ROIVolume
orROISurface
.- y
The dependent variable (response variable), either a numeric vector or a factor.
- indices
The spatial indices associated with each column.
- wts
Optional class weights (if the underlying model supports it).
- ...
Additional arguments passed to other methods.