You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the model is refitted with refit() on new data, it seems to lose attributes method and sparse which causes error in forecast.lst_mint_mdlhere . The problem appears to be in refit.mdl_df, where the attributes are lost.
library(tsibble)
library(fabletools)
library(fable)
lung_deaths_agg <- as_tsibble(cbind(mdeaths, fdeaths)) %>%
aggregate_key(key, value = sum(value))
fit <- lung_deaths_agg %>%
model(lm = TSLM(value ~ trend() + season())) %>%
reconcile(lm = min_trace(lm))
fit_refit <- fit %>% refit(lung_deaths_agg)
fit %>% forecast()
fit_refit %>% forecast()
Error: Problem with `mutate()` input `lm`.
✖ argument is of length zero
ℹ Input `lm` is `(function (object, ...) ...`.
Run `rlang::last_error()` to see where the error occurred.
The text was updated successfully, but these errors were encountered:
After the model is refitted with
refit()
on new data, it seems to lose attributesmethod
andsparse
which causes error inforecast.lst_mint_mdl
here . The problem appears to be inrefit.mdl_df
, where the attributes are lost.The text was updated successfully, but these errors were encountered: