Skip to content

Commit

Permalink
#31 fixes issue with metric not being specified
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed May 31, 2024
1 parent ca0e647 commit 6c33f88
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ Suggests:
lubridate,
knitr,
rmarkdown
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
VignetteBuilder: knitr
Roxygen: list(markdown = TRUE)
11 changes: 11 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# modeltime.ensemble (development version)

- #31 Fixes issue with metric argument not being specified:

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


# modeltime.ensemble 1.0.3

- Resubmit to CRAN (following timetk archival)
Expand Down
2 changes: 1 addition & 1 deletion R/ensemble_model_spec.R
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ generate_stacking_results <- function(object,
)
)

best_params_tbl <- tune_results_tbl %>% tune::show_best(metric, n = 1)
best_params_tbl <- tune_results_tbl %>% tune::show_best(metric = metric, n = 1)

if (control$verbose) {
cli::cli_alert_success("Finished tuning Model Specification.")
Expand Down

0 comments on commit 6c33f88

Please sign in to comment.