augment.kerasnip_output_view: Augment Method for 'kerasnip_output_view' Objects

View source: R/output_view.R

augment.kerasnip_output_viewR Documentation

Augment Method for kerasnip_output_view Objects

Description

Binds predict(x, new_data, type = "numeric")'s .pred column with new_data, mirroring workflows:::augment.workflow(). Used internally by int_conformal_split.kerasnip_output_view(), which needs both the prediction and new_data's truth column in one data frame.

Usage

## S3 method for class 'kerasnip_output_view'
augment(x, new_data, ...)

Arguments

x

A kerasnip_output_view.

new_data

A data frame of predictors, including x$output's truth column.

...

Not used.

Value

new_data with a .pred column prepended.


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