View source: R/vetiver-compatibility.R
handler_predict.accept_model | R Documentation |
Useful for supporting accept_model class in vetiver
## S3 method for class 'accept_model'
handler_predict(vetiver_model, ...)
vetiver_model |
A deployable [vetiver_model()] object |
... |
any other inputs |
A 'handler_startup' function should return invisibly, while a 'handler_predict' function should return a function with the signature 'function(req)'. The request body ('req$body') consists of the new data at prediction time; this function should return predictions either as a tibble or as a list coercable to a tibble via [tibble::as_tibble()].
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.