vetiver_pr_predict: Create a Plumber API to predict with a deployable...

View source: R/api.R

vetiver_pr_predictR Documentation

Create a Plumber API to predict with a deployable vetiver_model() object

Description

[Deprecated]

This function was deprecated to use vetiver_api directly instead.

Usage

vetiver_pr_predict(
  pr,
  vetiver_model,
  path = "/predict",
  debug = is_interactive(),
  ...
)

Arguments

pr

A Plumber router, such as from plumber::pr().

vetiver_model

A deployable vetiver_model() object

path

The endpoint path

debug

TRUE provides more insight into your API errors.

...

Other arguments passed to predict(), such as prediction type


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