parallelism: Support for parallel processing in tune

parallelismR Documentation

Support for parallel processing in tune

Description

Support for parallel backends registered with the foreach package was deprecated in tune 1.2.1 in favor of the future package. The package will now raise a warning when:

  1. A parallel backend has been registered with foreach, and

  2. No plan has been specified with future.

If parallelism has been configured with both framework, tune will use the plan specified with future and will not warn. To transition your code from foreach to future, remove code that registers a foreach Backend:

library(doBackend)
registerDoBackend(cores = 4)

And replace it with:

library(future)
plan(multisession, workers = 4)

See future::plan() for possible options other than multisession.


tidymodels/tune documentation built on April 21, 2024, 5:44 a.m.