predict_model: Predict Model Output

View source: R/allgeneric.R

predict_modelR Documentation

Predict Model Output

Description

Generic function to predict outcomes from a fitted model object using new data.

Usage

predict_model(object, fit, newdata, ...)

Arguments

object

A fitted model object for which a prediction method is defined.

fit

The fitted model object, often returned by 'train_model'. (Note: For some models, 'object' itself might be the fit).

newdata

New data (e.g., a matrix or data frame) for which to make predictions. The structure should be compatible with what the model was trained on.

...

Additional arguments passed to specific prediction methods.

Value

Predictions whose structure depends on the specific method (e.g., a vector, matrix, or data frame).


bbuchsbaum/rMVPA documentation built on June 10, 2025, 8:23 p.m.