-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Full Example: https://github.com/wtmoreland3/reprex/blob/3915d45d424135d8ca27c8c607ffc9da70aa89bf/modeltime_resample_error
Models that have inline functions fail. Example:
model_fit_lm <- linear_reg() %>%
set_engine("lm") %>%
fit(
value ~ as.numeric(date) + month(date, label = TRUE),
data = training(splits)
)Causes this error:
## > model_tbl_tuned_resamples <- submodels_tbl %>%
## + slice(c(5)) %>%
## + modeltime_fit_resamples(
## + resamples = resamples_tscv,
## + control = control_resamples(verbose = TRUE, allow_par = TRUE)
## + )
## -- Fitting Resamples --------------------------------------------
##
## * Model ID: 5 LM
## Error: No in-line functions should be used here; use steps to define baking actions.
## 0.03 sec elapsedReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels