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
library(epipredict)
#> Loading required package: epiprocess#> Registered S3 method overwritten by 'tsibble':#> method from #> as_tibble.grouped_df dplyr#> #> Attaching package: 'epiprocess'#> The following object is masked from 'package:stats':#> #> filter#> Loading required package: parsnip#> Registered S3 method overwritten by 'epipredict':#> method from #> print.step_naomit recipesjhu<-case_death_rate_subset %>%
dplyr::filter(time_value>= as.Date("2021-12-01")) %>%
dplyr::filter(time_value!= max(time_value) -7L)
out<- arx_forecaster(
jhu, "death_rate",
c("case_rate", "death_rate")
)
#> Error in `as_list_of()` at epipredict/R/dist_quantiles.R:63:3:#> ! Can't find common type for elements of `x`.
Just skimming, it looks like there might be one underlying issue + a similar related issue in a separate branch of the same function:
get_test_data() with fill_locf = TRUE does not complete() before fill()-ing. To avoid this error, we'd might want it to complete() according to the requested lags and/or a guessed period(... or maybe restructure prediction entirely to somehow fill() and select test instances after baking the test data?) --- this appears to be the case we are in with arx_forecaster()
get_test_data() with fill_locf = FALSE probably doesn't raise a comprehensible error message in this case either. --- this is a related error case
The text was updated successfully, but these errors were encountered:
Created on 2024-07-17 with reprex v2.1.1
Just skimming, it looks like there might be one underlying issue + a similar related issue in a separate branch of the same function:
get_test_data()
withfill_locf = TRUE
does notcomplete()
beforefill()
-ing. To avoid this error, we'd might want it tocomplete()
according to the requested lags and/or a guessed period(... or maybe restructure prediction entirely to somehowfill()
and select test instances after baking the test data?) --- this appears to be the case we are in witharx_forecaster()
get_test_data()
withfill_locf = FALSE
probably doesn't raise a comprehensible error message in this case either. --- this is a related error caseThe text was updated successfully, but these errors were encountered: