augment.vetiver_endpoint: Post new data to a deployed model API endpoint and augment...

View source: R/endpoint.R

augment.vetiver_endpointR Documentation

Post new data to a deployed model API endpoint and augment with predictions

Description

Post new data to a deployed model API endpoint and augment with predictions

Usage

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

Arguments

x

A model API endpoint object created with vetiver_endpoint().

new_data

New data for making predictions, such as a data frame.

...

Extra arguments passed to httr::POST()

Value

The new_data with added prediction column(s).

See Also

predict.vetiver_endpoint()

Examples


if (FALSE) {
endpoint <- vetiver_endpoint("http://127.0.0.1:8088/predict")
augment(endpoint, mtcars[4:7, -1])
}


tidymodels/vetiver documentation built on Oct. 15, 2024, 4:16 p.m.