decide_on_parallel_run: Determine whether a parallel run will be faster

Description Usage Arguments Value Examples

View source: R/HELPER_decide_on_parallel_run.R

Description

decide_on_parallel_run is a function to determine whether running the forecasting in parallel is going to be faster that not running it parallel. Because of the initialization time of parallel forecast runs, it could be faster for limited forecasting efforts to run without parallelization.

Usage

1

Arguments

fc_methods

A character vector specifying the forecast methods to run. For more info `?supported_fc_methods`.

nrows

A positive integer value indicating the number of rows in the main_forecasting_table that needs to be filled with forecasts.

Value

A boolean indicating whether a parallel run is expecting to be faster (TRUE) or not (FALSE)

Examples

1
2
decide_on_parallel_run(fc_methods = c("basic"), nrows = 100)
decide_on_parallel_run(fc_methods = c("basic", "prophet"), nrows = 100)

ing-bank/tsforecast documentation built on Sept. 18, 2020, 9:40 a.m.