predict.class_model_fit: This function predicts class labels and probabilities for new...

View source: R/model_fit.R

predict.class_model_fitR Documentation

This function predicts class labels and probabilities for new data using a fitted model.

Description

This function predicts class labels and probabilities for new data using a fitted model.

Usage

## S3 method for class 'class_model_fit'
predict(object, newdata, sub_indices = NULL, ...)

Arguments

object

A fitted model object of class class_model_fit.

newdata

New data to predict on, either as a matrix or a NeuroVec or NeuroSurfaceVector object.

sub_indices

The subset of row indices to compute predictions on (optional).

...

Additional arguments to be passed to the underlying prediction function.

Value

A list containing class predictions and probabilities with class attributes "classification_prediction", "prediction", and "list".


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