predict.vetiver_endpoint_sagemaker: Post new data to a deployed SageMaker model endpoint and...

View source: R/sagemaker.R

predict.vetiver_endpoint_sagemakerR Documentation

Post new data to a deployed SageMaker model endpoint and return predictions

Description

Post new data to a deployed SageMaker model endpoint and return predictions

Usage

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

Arguments

object

A SageMaker model endpoint object created with vetiver_endpoint_sagemaker().

new_data

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

...

Extra arguments passed to paws.machine.learning::sagemakerruntime_invoke_endpoint()

Value

A tibble of model predictions with as many rows as in new_data.

See Also

augment.vetiver_endpoint_sagemaker()

Examples

if (FALSE) {
  endpoint <- vetiver_endpoint_sagemaker("sagemaker-demo-model")
  predict(endpoint, mtcars[4:7, -1])
}

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