@@ -200,7 +200,8 @@ arx_fcast_epi_workflow <- function(
200200 } else {
201201 quantile_levels <- sort(compare_quantile_args(
202202 args_list $ quantile_levels ,
203- rlang :: eval_tidy(trainer $ eng_args $ quantiles ) %|| % c(.1 , .5 , .9 ),
203+ rlang :: eval_tidy(trainer $ eng_args $ quantiles ) %|| %
204+ c(0.05 , 0.1 , 0.25 , 0.5 , 0.75 , 0.9 , 0.95 ),
204205 " grf"
205206 ))
206207 trainer $ eng_args $ quantiles <- rlang :: enquo(quantile_levels )
@@ -253,8 +254,8 @@ arx_fcast_epi_workflow <- function(
253254# ' the last day of data. For example, if the last day of data was 3 days ago,
254255# ' the ahead becomes `ahead+3`.
255256# ' - `"extend_lags"`: increase the lags so they're relative to the actual
256- # ' forecast date. For example, if the lags are `c(0,7, 14)` and the last day of
257- # ' data was 3 days ago, the lags become `c(3,10,17)`.
257+ # ' forecast date. For example, if the lags are `c(0, 7, 14)` and the last day of
258+ # ' data was 3 days ago, the lags become `c(3, 10, 17)`.
258259# ' @param warn_latency by default, `step_adjust_latency` warns the user if the
259260# ' latency is large. If this is `FALSE`, that warning is turned off.
260261# ' @param quantile_levels Vector or `NULL`. A vector of probabilities to produce
@@ -295,7 +296,7 @@ arx_args_list <- function(
295296 target_date = NULL ,
296297 adjust_latency = c(" none" , " extend_ahead" , " extend_lags" , " locf" ),
297298 warn_latency = TRUE ,
298- quantile_levels = c(0.05 , 0.95 ),
299+ quantile_levels = c(0.05 , 0.1 , 0.25 , 0.5 , 0.75 , 0.9 , 0. 95 ),
299300 symmetrize = TRUE ,
300301 nonneg = TRUE ,
301302 quantile_by_key = character (0L ),
@@ -362,7 +363,7 @@ compare_quantile_args <- function(alist, tlist, train_method = c("qr", "grf")) {
362363 default_alist <- eval(formals(arx_args_list )$ quantile_levels )
363364 default_tlist <- switch (train_method ,
364365 " qr" = eval(formals(quantile_reg )$ quantile_levels ),
365- " grf" = c(. 1 , . 5 , .9 )
366+ " grf" = c(0.05 , 0. 1 , 0.25 , 0. 5 , 0.75 , 0.9 , 0.95 )
366367 )
367368 if (setequal(alist , default_alist )) {
368369 if (setequal(tlist , default_tlist )) {
0 commit comments