This function predicts class labels and probabilities for new data using a fitted model.
predict.class_model_fit.Rd
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 aNeuroVec
orNeuroSurfaceVector
object.- sub_indices
The subset of row indices to compute predictions on (optional).
- ...
Additional arguments to be passed to the underlying prediction function.