-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert null_model to be simply NULL #234
Comments
This will be a very nice feature. It will be much easier to clean the mable. BR |
This is slightly challenging as currently the NULL model stores its own response variables for formatting |
MRE: library(fable)
#> Loading required package: fabletools
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
lung_deaths <- as_tsibble(cbind(mdeaths, fdeaths))
mbl <- lung_deaths %>% model(a = TSLM(value ~ season()), b = SNAIVE(value))
bind_rows(mbl %>% slice(1), mbl %>% slice(2) %>% select(a))
#> Error in UseMethod("response_vars"): no applicable method for 'response_vars' applied to an object of class "NULL" Created on 2021-01-08 by the reprex package (v0.3.0) |
There are many cases in which NULL can be generated from other tidyverse tools.
Handling NULL models should be handled with the simpler
NULL
value.The text was updated successfully, but these errors were encountered: