Skip to contents

Fit a classification or regression model.

Usage

fit_model(
  obj,
  roi_x,
  y,
  wts,
  param,
  lev = NULL,
  last = FALSE,
  classProbs = FALSE,
  ...
)

Arguments

obj

A model fitting object.

roi_x

An ROI containing the training data.

y

The response vector.

wts

A set of case weights.

param

Tuning parameters.

lev

Factor levels (for classification).

last

Logical indicating if this is the last iteration.

classProbs

Logical indicating if class probabilities should be returned.

...

Additional arguments to be passed to the method-specific function.