R/dials-temporal_hierarchy_params.R

Defines functions use_model combination_method

Documented in combination_method use_model

#' Tuning Parameters for TEMPORAL HIERARCHICAL Models
#'
#'
#'
#' @details
#' The main parameters for Temporal Hierarchical models are:
#'
#'  - `combination_method`: Combination method of temporal hierarchies.
#'  - `use_model`: Model used for forecasting each aggregation level.
#'
#' @examples
#' combination_method()
#'
#' use_model()
#'
#' @name temporal_hierarchy_params


#' @export
#' @rdname temporal_hierarchy_params
combination_method <- function() {
    dials::new_qual_param(
        type      = "character",
        values    = c("struc", "mse", "ols", "bu", "shr", "sam"),
        label     = c(method = "Combination method of temporal hierarchies."),
        finalize  = NULL
    )
}


#' @export
#' @rdname temporal_hierarchy_params
use_model <- function() {
    dials::new_qual_param(
        type      = "character",
        values    = c("ets", "arima", "theta", "naive", "snaive"),
        label     = c(method = "Model used for forecasting each aggregation level."),
        finalize  = NULL
    )
}

Try the modeltime package in your browser

Any scripts or data that you put into this service are public.

modeltime documentation built on Sept. 2, 2023, 5:06 p.m.