business-science / modeltime.ensemble

Time Series Ensemble Forecasting
https://business-science.github.io/modeltime.ensemble/
Other
73 stars 16 forks source link

Ensemble Model Spec example code causes an error #30

Closed schwarzpat closed 3 months ago

schwarzpat commented 4 months ago

I have been running the code chunk from https://business-science.github.io/modeltime.ensemble/reference/ensemble_model_spec.html and i get this error at ensemble_fit_glmnet <- submodel_predictions %>% ensemble_model_spec( model_spec = linear_reg( penalty = tune(), mixture = tune() ) %>% set_engine("glmnet"), grid = 2, control = control_grid(verbose = TRUE) )

` ── Tuning Model Specification ─────────────────────────────────── ℹ Performing 5-Fold Cross Validation.

Error in tune::show_best(): ! ... must be empty. ✖ Problematic argument: • ..1 = metric ℹ Did you forget to name an argument? Backtrace:

  1. submodel_predictions %>% ...
  2. tune:::show_best.tune_results(., metric, n = 1)`

presumably this is because a deprecation in tune a while ago.

mdancho84 commented 3 months ago

Should be fixed now