tidyverts / fasster

Forecasting with Additive Switching of Seasonality, Trend and Exogenous Regressors
https://fasster.tidyverts.org/
149 stars 15 forks source link

object 'object' not found #37

Closed datawookie closed 6 years ago

datawookie commented 6 years ago

Hi,

I viewed your presentation from useR2018 and was deeply impressed by what's possible with fasster. This looks really amazing!

I've been working my way through the examples of the README.

> fit <- tsibbledata::UKLungDeaths %>%
+   FASSTER(fdeaths ~ mdeaths)
> 
> class(fit)
[1] "mable"      "lst_ts"     "tbl_df"     "tbl"        "data.frame"
> 
> fit %>% summary
FASSTER Model:
 fdeaths ~ mdeaths 

Estimated variances:
 State noise variances (W):
  mdeaths
   1.7119e-34

 Observation noise variance (V):
  1.6631e+03

Everything up to this point works perfectly. But when I try

fit %>% components

or

fit %>% forecast(h=24) %>% autoplot

I get an error:

Error in .f(.x[[i]], ...) : object 'object' not found

Please let me know if you need more information.

Best regards, Andrew.

Here's my session information:

> devtools::session_info()
Session info ------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.5.1 (2018-07-02)
 system   x86_64, linux-gnu           
 ui       RStudio (1.1.456)           
 language en_ZA:en                    
 collate  en_ZA.UTF-8                 
 tz       Africa/Johannesburg         
 date     2018-09-14                  

Packages ----------------------------------------------------------------------------------------------------------------------------------------------------
 package     * version    date       source                                
 assertthat    0.2.0      2017-04-11 CRAN (R 3.5.1)                        
 base        * 3.5.1      2018-07-03 local                                 
 bindr         0.1.1      2018-03-13 CRAN (R 3.5.1)                        
 bindrcpp    * 0.2.2      2018-03-29 CRAN (R 3.5.1)                        
 colorspace    1.3-2      2016-12-14 CRAN (R 3.5.1)                        
 compiler      3.5.1      2018-07-03 local                                 
 curl          3.2        2018-03-28 CRAN (R 3.5.1)                        
 datasets    * 3.5.1      2018-07-03 local                                 
 devtools      1.13.6     2018-06-27 CRAN (R 3.5.1)                        
 digest        0.6.17     2018-09-12 cran (@0.6.17)                        
 dlm           1.1-5      2018-06-13 cran (@1.1-5)                         
 dplyr         0.7.6      2018-06-29 CRAN (R 3.5.1)                        
 fable       * 0.0.0.9000 2018-09-14 Github (tidyverts/fable@6e81dda)      
 fablelite   * 0.0.0.9000 2018-09-14 Github (tidyverts/fablelite@98271e9)  
 fasster     * 0.1.0.9000 2018-09-14 Github (tidyverts/fasster@7633a99)    
 forecast      8.4        2018-06-21 CRAN (R 3.5.1)                        
 fracdiff      1.4-2      2012-12-02 CRAN (R 3.5.1)                        
 ggplot2       3.0.0.9000 2018-09-14 Github (tidyverse/ggplot2@1e01e68)    
 glue          1.2.0      2017-10-29 CRAN (R 3.5.1)                        
 graphics    * 3.5.1      2018-07-03 local                                 
 grDevices   * 3.5.1      2018-07-03 local                                 
 grid          3.5.1      2018-07-03 local                                 
 gtable        0.2.0      2016-02-26 CRAN (R 3.5.1)                        
 lattice       0.20-35    2017-03-25 CRAN (R 3.5.0)                        
 lazyeval      0.2.1      2017-10-29 CRAN (R 3.5.1)                        
 lmtest        0.9-36     2018-04-04 CRAN (R 3.5.1)                        
 lubridate     1.7.4      2018-04-11 CRAN (R 3.5.1)                        
 magrittr      1.5        2014-11-22 CRAN (R 3.5.1)                        
 memoise       1.1.0      2017-04-21 CRAN (R 3.5.1)                        
 methods     * 3.5.1      2018-07-03 local                                 
 munsell       0.5.0      2018-06-12 CRAN (R 3.5.1)                        
 nlme          3.1-137    2018-04-07 CRAN (R 3.5.0)                        
 nnet          7.3-12     2016-02-02 CRAN (R 3.5.0)                        
 numDeriv      2016.8-1   2016-08-27 CRAN (R 3.5.1)                        
 parallel      3.5.1      2018-07-03 local                                 
 pillar        1.2.3      2018-05-25 CRAN (R 3.5.1)                        
 pkgconfig     2.0.1      2017-03-21 CRAN (R 3.5.1)                        
 plyr          1.8.4      2016-06-08 CRAN (R 3.5.1)                        
 purrr         0.2.5      2018-05-29 CRAN (R 3.5.1)                        
 quadprog      1.5-5      2013-04-17 CRAN (R 3.5.1)                        
 quantmod      0.4-13     2018-04-13 CRAN (R 3.5.1)                        
 R6            2.2.2      2017-06-17 CRAN (R 3.5.1)                        
 Rcpp          0.12.18    2018-07-23 cran (@0.12.18)                       
 rlang         0.2.2      2018-08-16 cran (@0.2.2)                         
 scales        1.0.0      2018-08-09 CRAN (R 3.5.1)                        
 stats       * 3.5.1      2018-07-03 local                                 
 stringi       1.2.4      2018-07-20 CRAN (R 3.5.1)                        
 stringr       1.3.1      2018-05-10 CRAN (R 3.5.1)                        
 tibble        1.4.2      2018-01-22 CRAN (R 3.5.1)                        
 tidyr         0.8.1      2018-05-18 CRAN (R 3.5.1)                        
 tidyselect    0.2.4      2018-02-26 CRAN (R 3.5.1)                        
 timeDate      3043.102   2018-02-21 CRAN (R 3.5.1)                        
 tools         3.5.1      2018-07-03 local                                 
 tseries       0.10-45    2018-06-04 CRAN (R 3.5.1)                        
 tsibble       0.5.2.9000 2018-09-14 Github (tidyverts/tsibble@0bc8ceb)    
 tsibbledata   0.0.0.9000 2018-09-14 Github (tidyverts/tsibbledata@3c2baef)
 TTR           0.23-3     2018-01-24 CRAN (R 3.5.1)                        
 urca          1.3-0      2016-09-06 CRAN (R 3.5.1)                        
 uroot         2.0-9      2017-01-29 CRAN (R 3.5.1)                        
 utils       * 3.5.1      2018-07-03 local                                 
 withr         2.1.2      2018-03-15 CRAN (R 3.5.1)                        
 xts           0.11-1     2018-09-12 CRAN (R 3.5.1)                        
 yaml          2.2.0      2018-07-25 CRAN (R 3.5.1)                        
 zoo           1.8-3      2018-07-16 CRAN (R 3.5.1)
mitchelloharawild commented 6 years ago

Hi, Thanks for letting me know. A recent change to tsibble has caused a few issues with fablelite that have been resolved here: https://github.com/tidyverts/fablelite/commit/bbd69751c3fa0937343ccd2dec836d9d2b493725

If you reinstall fablelite with

devtools::install_github("tidyverts/fablelite")

It should now work.

mitchelloharawild commented 6 years ago

Might I add, thanks for your kind comments!

datawookie commented 6 years ago

For sure! This is going to be a massive game changer for a bunch of my analyses which I have been battling to do with other time series approaches.