predict.r4vn_machine: Predict from a tabmachine model

predict.r4vn_machineR Documentation

Predict from a tabmachine model

Description

Predict from a tabmachine model

Usage

## S3 method for class 'r4vn_machine'
predict(
  object,
  newdata,
  type = c("response", "prob", "class"),
  threshold = NULL,
  ...
)

Arguments

object

A fitted r4vn_machine object.

newdata

New predictor data.

type

"response", "prob", or "class".

threshold

Optional binary threshold overriding the training-derived final threshold.

...

Unused.

Value

Predictions whose structure depends on the task and type. For a regression task, a numeric vector of predicted outcomes is returned. For a binary task, type = "response" or "prob" returns a numeric vector of probabilities for the modeled event, while type = "class" returns a factor of predicted classes. For a multiclass task, type = "response" or "prob" returns a numeric matrix of class probabilities and type = "class" returns a factor of predicted classes.


R4VN documentation built on Sept. 30, 2026, 5:13 p.m.