Draw innovations by bootstrapping from unweighted residual errors
Source:R/draw_innovations.R
      draw_bootstrap.RdDraw innovations by bootstrapping from unweighted residual errors
Arguments
- n
- The number of innovations to draw 
- errors
- The residual errors that are used to define the distribution from which the innovations are drawn 
- ...
- Additional arguments passed from - predict.threedx(), ignored
Examples
model <- learn_weights(
  y = rpois(n = 55, lambda = pmax(0.1, 1 + 10 * sinpi(1:55 / 6))),
  period_length = 12L,
  alphas_grid = list_sampled_alphas(n_target = 25),
  loss_function = loss_mae
)
forecast <- predict(
  object = model,
  horizon = 12L,
  n_samples = 1000L,
  observation_driven = FALSE,
  innovation_function = draw_bootstrap
)