Skip to contents

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

Usage

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