Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensemble Model Spec example code causes an error #30

Closed
schwarzpat opened this issue Apr 23, 2024 · 1 comment
Closed

Ensemble Model Spec example code causes an error #30

schwarzpat opened this issue Apr 23, 2024 · 1 comment

Comments

@schwarzpat
Copy link

schwarzpat commented Apr 23, 2024

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
Copy link
Contributor

Should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants