soothsayer_oracles: Define a soothsayer oracle

new_soothsayer_oracleR Documentation

Define a soothsayer oracle

Description

Create a new soothsayer oracle

Usage

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, ...)

Arguments

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).

Value

A soothsayer oracle


JSzitas/soothsayer documentation built on April 18, 2023, 12:59 a.m.