* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/modeltime.ensemble.Rcheck’
* using R Under development (unstable) (2024-04-01 r86259)
* using platform: x86_64-pc-linux-gnu
* R was compiled by
gcc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7)
GNU Fortran (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7)
* running under: Fedora Linux 38 (Workstation Edition)
* using session charset: UTF-8
* checking for file ‘modeltime.ensemble/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘modeltime.ensemble’ version ‘1.0.3’
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘modeltime.ensemble’ can be installed ... [14s/14s] OK
* checking package directory ... OK
* checking ‘build’ directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking code files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking dependencies in R code ... NOTE
Namespace in Imports field not imported from: ‘parsnip’
All declared Imports should be used.
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... [20s/20s] OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking installed files from ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... OK
* checking examples with --run-donttest ... [14s/14s] ERROR
Running examples in ‘modeltime.ensemble-Ex.R’ failed
The error most likely occurred in:
> ### Name: ensemble_model_spec
> ### Title: Creates a Stacked Ensemble Model from a Model Spec
> ### Aliases: ensemble_model_spec
>
> ### ** Examples
>
> ## No test:
> library(tidymodels)
── Attaching packages ────────────────────────────────────── tidymodels 1.2.0 ──
✔ broom 1.0.5 ✔ recipes 1.0.10
✔ dials 1.2.1 ✔ rsample 1.2.1
✔ dplyr 1.1.4 ✔ tibble 3.2.1
✔ ggplot2 3.5.0 ✔ tidyr 1.3.1
✔ infer 1.0.7 ✔ tune 1.2.0
✔ modeldata 1.3.0 ✔ workflows 1.1.4
✔ parsnip 1.2.1 ✔ workflowsets 1.1.0
✔ purrr 1.0.2 ✔ yardstick 1.3.1
── Conflicts ───────────────────────────────────────── tidymodels_conflicts() ──
✖ purrr::discard() masks scales::discard()
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
✖ recipes::step() masks stats::step()
• Dig deeper into tidy modeling with R at https://www.tmwr.org
> library(modeltime)
> library(modeltime.ensemble)
> library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ forcats 1.0.0 ✔ readr 2.1.5
✔ lubridate 1.9.3 ✔ stringr 1.5.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ readr::col_factor() masks scales::col_factor()
✖ purrr::discard() masks scales::discard()
✖ dplyr::filter() masks stats::filter()
✖ stringr::fixed() masks recipes::fixed()
✖ dplyr::lag() masks stats::lag()
✖ readr::spec() masks yardstick::spec()
ℹ Use the conflicted package () to force all conflicts to become errors
> library(timetk)
>
> # Step 1: Make resample predictions for submodels
> resamples_tscv <- training(m750_splits) %>%
+ time_series_cv(
+ assess = "2 years",
+ initial = "5 years",
+ skip = "2 years",
+ slice_limit = 1
+ )
Using date_var: date
>
> submodel_predictions <- m750_models %>%
+ modeltime_fit_resamples(
+ resamples = resamples_tscv,
+ control = control_resamples(verbose = TRUE)
+ )
── Fitting Resamples ────────────────────────────────────────────
• Model ID: 1 ARIMA(0,1,1)(0,1,1)[12]
i Slice1: preprocessor 1/1
! Slice1: preprocessor 1/1:
`keep_original_cols` was added to `step_dummy()` after this recipe was...
ℹ Regenerate your recipe to avoid this warning.
✓ Slice1: preprocessor 1/1
i Slice1: preprocessor 1/1, model 1/1
frequency = 12 observations per 1 year
✓ Slice1: preprocessor 1/1, model 1/1
i Slice1: preprocessor 1/1, model 1/1 (extracts)
i Slice1: preprocessor 1/1, model 1/1 (predictions)
• Model ID: 2 PROPHET
i Slice1: preprocessor 1/1
! Slice1: preprocessor 1/1:
`keep_original_cols` was added to `step_dummy()` after this recipe was...
ℹ Regenerate your recipe to avoid this warning.
✓ Slice1: preprocessor 1/1
i Slice1: preprocessor 1/1, model 1/1
Disabling weekly seasonality. Run prophet with weekly.seasonality=TRUE to override this.
Disabling daily seasonality. Run prophet with daily.seasonality=TRUE to override this.
✓ Slice1: preprocessor 1/1, model 1/1
i Slice1: preprocessor 1/1, model 1/1 (extracts)
i Slice1: preprocessor 1/1, model 1/1 (predictions)
• Model ID: 3 GLMNET
i Slice1: preprocessor 1/1
! Slice1: preprocessor 1/1:
`keep_original_cols` was added to `step_dummy()` after this recipe was...
ℹ Regenerate your recipe to avoid this warning.
✓ Slice1: preprocessor 1/1
i Slice1: preprocessor 1/1, model 1/1
✓ Slice1: preprocessor 1/1, model 1/1
i Slice1: preprocessor 1/1, model 1/1 (extracts)
i Slice1: preprocessor 1/1, model 1/1 (predictions)
4.741 sec elapsed
>
> # Step 2: Metalearner ----
>
> # * No Metalearner Tuning
> ensemble_fit_lm <- submodel_predictions %>%
+ ensemble_model_spec(
+ model_spec = linear_reg() %>% set_engine("lm"),
+ control = control_grid(verbose = TRUE)
+ )
── Fitting Non-Tunable Model Specification ──────────────────────
ℹ Fitting model spec to submodel cross-validation predictions.
ℹ Prediction Error Comparison:
# A tibble: 4 × 3
.model_id rmse .model_desc
1 1 579. ARIMA(0,1,1)(0,1,1)[12]
2 2 381. PROPHET
3 3 558. GLMNET
4 ensemble 128. ENSEMBLE (MODEL SPEC)
── Final Model ──────────────────────────────────────────────────
ℹ Model Workflow:
══ Workflow [trained] ══════════════════════════════════════════════════════════
Preprocessor: Recipe
Model: linear_reg()
── Preprocessor ────────────────────────────────────────────────────────────────
0 Recipe Steps
── Model ───────────────────────────────────────────────────────────────────────
Call:
stats::lm(formula = ..y ~ ., data = data)
Coefficients:
(Intercept) .model_id_1 .model_id_2 .model_id_3
-2637.2266 0.5754 -0.1919 0.8550
0.14 sec elapsed
>
> ensemble_fit_lm
── Modeltime Ensemble ───────────────────────────────────────────
Ensemble of 3 Models (LM STACK)
# Modeltime Table
# A tibble: 3 × 3
.model_id .model .model_desc
1 1 ARIMA(0,1,1)(0,1,1)[12]
2 2 PROPHET
3 3 GLMNET
>
> # * With Metalearner Tuning ----
> 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.
i Fold1: preprocessor 1/1
✓ Fold1: preprocessor 1/1
i Fold1: preprocessor 1/1, model 1/2
✓ Fold1: preprocessor 1/1, model 1/2
i Fold1: preprocessor 1/1, model 1/2 (extracts)
i Fold1: preprocessor 1/1, model 1/2 (predictions)
i Fold1: preprocessor 1/1, model 2/2
✓ Fold1: preprocessor 1/1, model 2/2
i Fold1: preprocessor 1/1, model 2/2 (extracts)
i Fold1: preprocessor 1/1, model 2/2 (predictions)
i Fold2: preprocessor 1/1
✓ Fold2: preprocessor 1/1
i Fold2: preprocessor 1/1, model 1/2
✓ Fold2: preprocessor 1/1, model 1/2
i Fold2: preprocessor 1/1, model 1/2 (extracts)
i Fold2: preprocessor 1/1, model 1/2 (predictions)
i Fold2: preprocessor 1/1, model 2/2
✓ Fold2: preprocessor 1/1, model 2/2
i Fold2: preprocessor 1/1, model 2/2 (extracts)
i Fold2: preprocessor 1/1, model 2/2 (predictions)
i Fold3: preprocessor 1/1
✓ Fold3: preprocessor 1/1
i Fold3: preprocessor 1/1, model 1/2
✓ Fold3: preprocessor 1/1, model 1/2
i Fold3: preprocessor 1/1, model 1/2 (extracts)
i Fold3: preprocessor 1/1, model 1/2 (predictions)
i Fold3: preprocessor 1/1, model 2/2
✓ Fold3: preprocessor 1/1, model 2/2
i Fold3: preprocessor 1/1, model 2/2 (extracts)
i Fold3: preprocessor 1/1, model 2/2 (predictions)
i Fold4: preprocessor 1/1
✓ Fold4: preprocessor 1/1
i Fold4: preprocessor 1/1, model 1/2
✓ Fold4: preprocessor 1/1, model 1/2
i Fold4: preprocessor 1/1, model 1/2 (extracts)
i Fold4: preprocessor 1/1, model 1/2 (predictions)
i Fold4: preprocessor 1/1, model 2/2
✓ Fold4: preprocessor 1/1, model 2/2
i Fold4: preprocessor 1/1, model 2/2 (extracts)
i Fold4: preprocessor 1/1, model 2/2 (predictions)
i Fold5: preprocessor 1/1
✓ Fold5: preprocessor 1/1
i Fold5: preprocessor 1/1, model 1/2
✓ Fold5: preprocessor 1/1, model 1/2
i Fold5: preprocessor 1/1, model 1/2 (extracts)
i Fold5: preprocessor 1/1, model 1/2 (predictions)
i Fold5: preprocessor 1/1, model 2/2
✓ Fold5: preprocessor 1/1, model 2/2
i Fold5: preprocessor 1/1, model 2/2 (extracts)
i Fold5: preprocessor 1/1, model 2/2 (predictions)
Error in `tune::show_best()`:
! `...` must be empty.
✖ Problematic argument:
• ..1 = metric
ℹ Did you forget to name an argument?
Backtrace:
▆
1. ├─submodel_predictions %>% ...
2. ├─modeltime.ensemble::ensemble_model_spec(...)
3. ├─modeltime.ensemble:::ensemble_model_spec.mdl_time_tbl(...)
4. │ └─modeltime.ensemble:::generate_stacking_results(...)
5. │ └─tune_results_tbl %>% tune::show_best(metric, n = 1)
6. ├─tune::show_best(., metric, n = 1)
7. └─tune:::show_best.tune_results(., metric, n = 1)
8. └─rlang::check_dots_empty()
9. └─rlang:::action_dots(...)
10. ├─base (local) try_dots(...)
11. └─rlang (local) action(...)
Execution halted
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
Running ‘testthat.R’ [61s/61s]
[61s/61s] OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking re-building of vignette outputs ... [21s/21s] OK
* checking PDF version of manual ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* checking for new files in some other directories ... OK
* DONE
Status: 1 ERROR, 1 NOTE
See
‘/data/blackswan/ripley/R/packages/tests-devel/modeltime.ensemble.Rcheck/00check.log’
for details.
Command exited with non-zero status 1
Time 3:28.28, 194.49 + 13.86