Do I need to use future_map or map to parallelize fable forecast?

Viewed 239

I've created a tsibble of ~75K time series in R Studio on my local machine.

I'm looking for ways to speed up the processing time before I migrate the process to a VM with more processing power.

Does Fable handle all of the parallel processing in the background or are there more opportunities to make the code more efficient?

Here is an example of my code

plan(multisession, gc= TRUE)
tic()
results <- train %>%
  group_by_key() %>%  
  model(my_dcmp_spec) %>% 
  forecast(h="10 weeks") %>% 
  ungroup()
toc()

Thank you in advance!

1 Answers
Related