new_soothsayer_oracle | R Documentation |
Create a new soothsayer oracle
new_soothsayer_oracle(
oracle_name = NULL,
trained_oracle = NULL,
predict = function(...) {
rlang::abort("This oracle must have a prediction method.")
},
emits = "models",
...
)
## S3 method for class 'soothsayer_oracle'
predict(object, features, ...)
oracle_name |
= NULL, |
trained_oracle |
A trained oracle (if needed) for making predictions. |
predict |
The prediction for your oracle. |
emits |
What the model emits (either **"models"** or **"weights"**) where **models** is a variable length character vector, e.g. **c("ets","ar")**, or a named vector of weights, e.g. **c("ets" = 0.3, "ar" = 0.7)**. |
... |
Additional arguments (currently unimplemented). |
object |
The soothsayer oracle to fit/use for prediction. |
features |
The features to use for the predict function (analogous to newx/newdata in other predict functions). |
A soothsayer oracle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.