Update the model by model id in a Modeltime Table
Source:R/helpers-modeltime_table.R
update_modeltime_model.Rd
Update the model by model id in a Modeltime Table
See also
combine_modeltime_tables()
: Combine 2 or more Modeltime Tables togetheradd_modeltime_model()
: Adds a new row with a new model to a Modeltime Tabledrop_modeltime_model()
: Drop one or more models from a Modeltime Tableupdate_modeltime_description()
: Updates a description for a model inside a Modeltime Tableupdate_modeltime_model()
: Updates a model inside a Modeltime Tablepull_modeltime_model()
: Extracts a model from a Modeltime Table
Examples
# \donttest{
library(tidymodels)
model_fit_ets <- exp_smoothing() %>%
set_engine("ets") %>%
fit(value ~ date, training(m750_splits))
#> frequency = 12 observations per 1 year
m750_models %>%
update_modeltime_model(1, model_fit_ets)
#> # Modeltime Table
#> # A tibble: 3 × 3
#> .model_id .model .model_desc
#> <int> <list> <chr>
#> 1 1 <fit[+]> ETS(A,A,A)
#> 2 2 <workflow> PROPHET
#> 3 3 <workflow> GLMNET
# }