Learn R Programming

fastml (version 0.5.0)

predict.fastml_model: Predict Function for fastml_model

Description

Makes predictions on new data using the trained model.

Usage

# S3 method for fastml_model
predict(object, newdata, type = "auto", ...)

Value

A vector or data frame of predictions.

Arguments

object

An object of class fastml_model.

newdata

A data frame containing new data for prediction.

type

Type of prediction. Default is "auto", which returns class labels for classification and numeric predictions for regression. Other options include "prob" for class probabilities (classification only).

...

Additional arguments (not used).