Skip to contents

This function fits a multivariate pattern analysis (MVPA) model to the given data.

Usage

# S3 method for mvpa_model
fit_model(obj, x, y, wts, param, classProbs, ...)

Arguments

obj

An object derived from the mvpa_model class.

x

The training data matrix.

y

The response vector.

wts

Optional class weights (if the underlying model supports it).

param

The hyperparameters of the model.

classProbs

Logical; if TRUE, class probabilities should be computed (default is FALSE).

...

Additional arguments to be passed to the underlying model fitting function.

Value

A fitted model object with additional attributes "obsLevels" and "problemType".