fit.kerasnip_tailored_workflow: Fit Method for 'kerasnip_tailored_workflow' Objects

View source: R/kerasnip_add_tailor.R

fit.kerasnip_tailored_workflowR Documentation

Fit Method for kerasnip_tailored_workflow Objects

Description

Trains the underlying multi-output/multistep workflow, then fits object$tailor against the target output's/step's predictions (via kerasnip_output_view()/kerasnip_step_view()) on data_calibration if supplied, otherwise on data.

Usage

## S3 method for class 'kerasnip_tailored_workflow'
fit(object, data, ..., data_calibration = NULL)

Arguments

object

A kerasnip_tailored_workflow, from kerasnip_add_tailor().

data

The training data.

...

Passed to fit() on the underlying workflow.

data_calibration

Optional calibration data for the tailor; defaults to data if not supplied.

Value

A kerasnip_tailored_fit, to be used with predict().


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