predict.vetiver_endpoint | R Documentation |
Post new data to a deployed model API endpoint and return predictions
## S3 method for class 'vetiver_endpoint'
predict(object, new_data, ...)
object |
A model API endpoint object created with |
new_data |
New data for making predictions, such as a data frame. |
... |
Extra arguments passed to |
A tibble of model predictions with as many rows as in new_data
.
augment.vetiver_endpoint()
if (FALSE) {
endpoint <- vetiver_endpoint("http://127.0.0.1:8088/predict")
predict(endpoint, mtcars[4:7, -1])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.