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


vetiver documentation built on Nov. 17, 2023, 1:06 a.m.