fit_model.mvpa_model: Fit an MVPA model

View source: R/model_fit.R

fit_model.mvpa_modelR Documentation

Fit an MVPA model

Description

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

Usage

## S3 method for class '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".


bbuchsbaum/rMVPA documentation built on April 23, 2024, 7:35 a.m.