predict.kerasnip_tailored_fit: Predict Method for 'kerasnip_tailored_fit' Objects

View source: R/kerasnip_add_tailor.R

predict.kerasnip_tailored_fitR Documentation

Predict Method for kerasnip_tailored_fit Objects

Description

Predicts from the underlying full workflow, applies the fitted tailor to the target output's/step's predictions, and splices the adjusted values back in: ⁠.pred_<output>⁠/⁠.pred_class_<output>⁠-suffixed columns for a multi-output model, or the matching .step entry in every row's nested tibble for a multistep model. Every other output/step is returned exactly as a plain predict() on the underlying fit would give it.

Usage

## S3 method for class 'kerasnip_tailored_fit'
predict(object, new_data, ...)

Arguments

object

A kerasnip_tailored_fit, from fit() on a kerasnip_tailored_workflow.

new_data

A data frame of predictors.

...

Not used.

Value

A tibble in the full multi-output/multistep prediction shape.


kerasnip documentation built on Sept. 4, 2026, 1:06 a.m.