R/modeltime_multirefit.R
modeltime_multirefit.Rd
applies the modeltime_refit()
function from the 'modeltime' package to multiple series and models.
modeltime_multirefit(models_table)
models_table | 'table_time' tibble generated from the |
---|
retrained 'table_time' object.
it takes the 'table_time' tibble generated with the modeltime_multifit()
function and
returns the same object but with the models fitted for the complete period.
# Data library(modeltime) data_serie <- head(sknifedatar::table_time$table_time,1) # modeltime_multirefit sknifedatar::modeltime_multirefit(models_table = data_serie)#>#>#> # A tibble: 1 x 6 #> sector nested_column m_ets m_nnetar nested_model calibration #> <chr> <list> <list> <list> <list> <list> #> 1 Comercio <tibble [49 × 2… <fit[+… <fit[+]> <model_time [2 ×… <model_time [2 ×…