stackgbm icon indicating copy to clipboard operation
stackgbm copied to clipboard

Future-based parallel over parameter grid

Open nanxstats opened this issue 1 year ago • 0 comments

  • My goal is to maximize CPU utilization as only increasing n_threads doesn't seem to make that happen.
  • The idea is to refactor the for-loop with foreach + %dofuture% loops to parallel over the parameter grid.
  • Remove the seed argument to let users set.seed() outside.
  • Let users configure the future parallel backend outside (or not, to use sequential).
  • Use progressr (%dofuture% compatible) to display progress bar.
  • Would probably recommend to set n_threads to 1 when using this parallel.
  • A vignette to explain these would be nice.

nanxstats avatar May 01 '24 01:05 nanxstats